]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Fix cleanup when register ULP fails
authorTony Lu <tonylu@linux.alibaba.com>
Fri, 25 Feb 2022 06:56:57 +0000 (14:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2022 11:31:49 +0000 (11:31 +0000)
commit4d08b7b57ece83a1c31c633a7e4e27f121157f9c
tree29c695b76dfd29341bc29d5c940059fa7dd51fb7
parent9995b408f17ff8c7f11bc725c8aa225ba3a63b1c
net/smc: Fix cleanup when register ULP fails

This patch calls smc_ib_unregister_client() when tcp_register_ulp()
fails, and make sure to clean it up.

Fixes: d7cd421da9da ("net/smc: Introduce TCP ULP support")
Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c