netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][NET]: fix dummy initialization
@ 2006-07-20 15:27 Nicolas DICHTEL
  0 siblings, 0 replies; only message in thread
From: Nicolas DICHTEL @ 2006-07-20 15:27 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

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 <nicolas.dichtel@6wind.com>

[-- Attachment #2: x.diff --]
[-- Type: text/x-patch, Size: 285 bytes --]

--- 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);
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-20 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-20 15:27 [PATCH][NET]: fix dummy initialization Nicolas DICHTEL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).