]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Fix error path in smc_init
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 Jun 2019 15:47:50 +0000 (17:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2019 17:10:16 +0000 (10:10 -0700)
commit40ded1415bd82ce063884bbfbd593ab36db42517
tree6b49ef1319ea4efc0838a85d71b746c3c1ba8e13
parent4b5da2863e7761cbeda778a230a2ee40d4f1b675
net/smc: Fix error path in smc_init

If register_pernet_subsys success in smc_init,
we should cleanup it in case any other error.

Fixes: e5a90bd319b8 (net/smc: add pnet table namespace support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c