summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.ibm.com>2023-03-13 13:08:29 +0300
committerDavid S. Miller <davem@davemloft.net>2023-03-15 11:15:19 +0300
commit9d876d3ef27fa84355597ad269939772192356d8 (patch)
tree15eb91ba7cad8b338035cf91b4da682cfaac2b09
parent13085e1b5cab8ad802904d72e6a6dae85ae0cd20 (diff)
downloadlinux-9d876d3ef27fa84355597ad269939772192356d8.tar.xz
net/smc: Fix device de-init sequence
CLC message initialization was not properly reversed in error handling path. Reported-and-suggested-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Stefan Raspl <raspl@linux.ibm.com> Signed-off-by: Wenjia Zhang <wenjia@linux.ibm.com> Reviewed-by: Tony Lu <tonylu@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/smc/af_smc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c
index ff6dd86bdc9f..c6b4a62276f6 100644
--- a/net/smc/af_smc.c
+++ b/net/smc/af_smc.c
@@ -3501,6 +3501,7 @@ out_pnet:
out_nl:
smc_nl_exit();
out_ism:
+ smc_clc_exit();
smc_ism_exit();
out_pernet_subsys_stat:
unregister_pernet_subsys(&smc_net_stat_ops);