Skip to content

Commit

Permalink
[IFB] After ifb_init_one() failed, i is increased. Decrease
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Dichtel authored and David S. Miller committed Jul 21, 2006
1 parent 53c4b2c commit 4a9c74e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4a9c74e

Please sign in to comment.