]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
[IFB] After ifb_init_one() failed, i is increased. Decrease
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 21 Jul 2006 21:56:02 +0000 (14:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
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 <nicolas.dichtel@6wind.com>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
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);
        }