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)
commit5edfbd3c0697e643f179dba819a7c09375b42543
treedc35ad585e0ad601bee1804b69529ce49090bab9
parent6c7fce6fa86a110d6455662d823c4e09f8f7be4a
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