commit | 9ed36279f68c990d65cd3d64f27d81313474a118 | [log] [tgz] |
---|---|---|
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | Fri Jul 21 15:09:07 2006 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 21 15:09:07 2006 -0700 |
tree | d79111b110792eee5462a845e2655b09c4da156e | |
parent | 4a9c74e5830444c1c3235848e06402c1d2ece1ea [diff] [blame] |
[DUMMY]: Avoid an oops when dummy_init_one() failed Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c index 36d5117..2146cf7 100644 --- a/drivers/net/dummy.c +++ b/drivers/net/dummy.c
@@ -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); }