Sorry, I forgot the patch ;-)
Nicolas
Nicolas DICHTEL a écrit :
jamal a écrit :
BTW, in the name of the LinuxWay(tm) - can you also submit a similar
patch for dummy? It suffers from the same bug.
No problem, patch is enclosed.
Cheers,
Nicolas
[DUMMY] Avoid an oops when dummy_init_one() failed
Signed-off-by: Nicolas Dichtel <[EMAIL PROTECTED]>
--- 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);
}