]> git.baikalelectronics.ru Git - kernel.git/commit
tun/tap: Add the missed return value check of register_netdevice_notifier
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Thu, 20 Jul 2017 09:41:34 +0000 (02:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2017 20:44:31 +0000 (13:44 -0700)
commit0af920e6fcc0ba8307d5d19173542333e702f50f
treedc35ad585e0ad601bee1804b69529ce49090bab9
parent0fa4d83215b44a012a6c2e53deacbe2735253cd1
tun/tap: Add the missed return value check of register_netdevice_notifier

There is some codes of tun/tap module which did not check the return
value of register_netdevice_notifier. Add the check now.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c