Skip to content

Commit

Permalink
[DUMMY]: Avoid an oops when dummy_init_one() failed
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
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 4a9c74e commit 9ed3627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ static int __init dummy_init_module(void)
for (i = 0; i < numdummies && !err; i++)
err = dummy_init_one(i);
if (err) {
i--;
while (--i >= 0)
dummy_free_one(i);
}
Expand Down

0 comments on commit 9ed3627

Please sign in to comment.