RDS: fix rds_tcp_init() error path
authorVegard Nossum <vegard.nossum@oracle.com>
Sun, 3 Jul 2016 08:54:54 +0000 (10:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2016 23:09:49 +0000 (16:09 -0700)
commit3dad5424adfb346c871847d467f97dcdca64ea97
treefc7413d94100ca238343f21a327a7a80cd3bb364
parentd5d5e8d55732c7c35c354e45e3b0af2795978a57
RDS: fix rds_tcp_init() error path

If register_pernet_subsys() fails, we shouldn't try to call
unregister_pernet_subsys().

Fixes: 467fa15356 ("RDS-TCP: Support multiple RDS-TCP listen endpoints, one per netns.")
Cc: stable@vger.kernel.org
Cc: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Acked-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