Subject: [PATCH][NET]: fix dummy initialization

From: Nicolas DICHTEL <[email-masked]>
Date: Thu, 20 Jul 2006 17:27:33 +0200

Same problem and same fix that for IFB.

Regards,
Nicolas

[NET][DUMMY] Avoid an oops when dummy_init_one() failed

Signed-off-by: Nicolas Dichtel <[email-masked]>
--- a/drivers/net/dummy.c	2006-07-20 16:19:09.395351558 +0200
+++ b/drivers/net/dummy.c	2006-07-20 16:19:58.802327279 +0200
@@ -132,6 +132,7 @@
 	for (i = 0; i < numdummies && !err; i++)
 		err = dummy_init_one(i); 
 	if (err) { 
+		i--;
 		while (--i >= 0)
 			dummy_free_one(i);
 	}