diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-05-14 10:51:18 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-14 10:51:18 +0400 |
commit | 4b95ede6f6116ae1c0ed9605ec97d856c4814569 (patch) | |
tree | eed0dbc4752ec5f3118cb1da7b56e822caccbd45 /drivers/net/ppp_generic.c | |
parent | 01b7a314291b2ef56ad718ee1374a1bac4768b29 (diff) | |
download | linux-4b95ede6f6116ae1c0ed9605ec97d856c4814569.tar.xz |
ppp: Do not free not yet unregistered net device.
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>
Diffstat (limited to 'drivers/net/ppp_generic.c')
-rw-r--r-- | drivers/net/ppp_generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index d3207c0da895..1f4ca2b54a73 100644 --- 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); |