RDS: TCP: unregister_netdevice_notifier() in error path of rds_tcp_init_net
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Thu, 1 Dec 2016 12:44:43 +0000 (04:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 18:29:26 +0000 (13:29 -0500)
commit721c7443dcb26bf8c0b4ad317a36c7dfa140f1e4
treea195438c0f89d4b470d136ee34f4c8ebef1a768b
parent80d1106aeaf689ab5fdf33020c5fecd269b31c88
RDS: TCP: unregister_netdevice_notifier() in error path of rds_tcp_init_net

If some error is encountered in rds_tcp_init_net, make sure to
unregister_netdevice_notifier(), else we could trigger a panic
later on, when the modprobe from a netns fails.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c