OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01b7a31
)
ppp: Do not free not yet unregistered net device.
author
Pavel Emelyanov
<xemul@openvz.org>
Wed, 14 May 2008 06:51:18 +0000
(23:51 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 14 May 2008 06:51:18 +0000
(23:51 -0700)
An error path in ppp_create_interface() lacks one and may
BUG in free_netdev() checking for proper dev->reg_state.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp_generic.c
patch
|
blob
|
history
diff --git
a/drivers/net/ppp_generic.c
b/drivers/net/ppp_generic.c
index
d3207c0
..
1f4ca2b
100644
(file)
--- a/
drivers/net/ppp_generic.c
+++ b/
drivers/net/ppp_generic.c
@@
-2458,6
+2458,7
@@
ppp_create_interface(int unit, int *retp)
out3:
atomic_dec(&ppp_unit_count);
+ unregister_netdev(dev);
out2:
mutex_unlock(&all_ppp_mutex);
free_netdev(dev);