Skip to contentSkip to conversation

: fix dummy initialization

PATCH New Nicolas DICHTEL 1 participant 1 message Jul 20, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : fix dummy initialization

Same problem and same fix that for IFB.

Regards,
Nicolas

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

drivers/net/dummy.c +1 -0
@@ -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);
 	}