[IFB] After ifb_init_one() failed, i is increased. Decrease
authorNicolas Dichtel <[email protected]>
Fri, 21 Jul 2006 21:56:02 +0000 (14:56 -0700)
committerDavid S. Miller <[email protected]>
Fri, 21 Jul 2006 21:56:02 +0000 (14:56 -0700)
It before entering in the loop for freeing the other ifb devices.

Signed-off-by: Nicolas Dichtel <[email protected]>
Acked-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ifb.c

index 3a42afab50362983fc2b393b191757d59f5d5c21..43e3f33ed5e20578b57b6872bf1be549a3502fbf 100644 (file)
@@ -271,6 +271,7 @@ static int __init ifb_init_module(void)
        for (i = 0; i < numifbs && !err; i++)
                err = ifb_init_one(i); 
        if (err) { 
+               i--;
                while (--i >= 0)
                        ifb_free_one(i);
        }