diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-03-17 18:08:45 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-03-17 18:08:45 +0300 |
commit | 9e996cb0055d3d652876e00c2415b31609666690 (patch) | |
tree | 37863b05e5abf0123e3314c83ec1b9b77673c818 /drivers | |
parent | 9d6f83faa75d8f5091faaa6422420490692660d4 (diff) | |
download | accel-ppp-9e996cb0055d3d652876e00c2415b31609666690.tar.gz accel-ppp-9e996cb0055d3d652876e00c2415b31609666690.zip |
ipoe_mod: fix possible panic
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ipoe/ipoe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index c8048dc2..182b3d98 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -1444,7 +1444,8 @@ static int ipoe_nl_cmd_del_interface(struct sk_buff *skb, struct genl_info *info if (ifindex == -1 || ifindex == i->ifindex) { dev = __dev_get_by_index(&init_net, i->ifindex); - netdev_rx_handler_unregister(dev); + if (dev) + netdev_rx_handler_unregister(dev); list_del(&i->entry); |