projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a9c74e
)
[DUMMY]: Avoid an oops when dummy_init_one() failed
author
Nicolas Dichtel
<nicolas.dichtel@6wind.com>
Fri, 21 Jul 2006 22:09:07 +0000
(15:09 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 21 Jul 2006 22:09:07 +0000
(15:09 -0700)
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dummy.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/dummy.c
b/drivers/net/dummy.c
index 36d511729f7116549bdf560ee1df3c149f4b737c..2146cf74425ef239f678f484ba37a6ecc272f44c 100644
(file)
--- a/
drivers/net/dummy.c
+++ b/
drivers/net/dummy.c
@@
-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);
}