net/smc: Fix device de-init sequence
authorStefan Raspl <raspl@linux.ibm.com>
Mon, 13 Mar 2023 10:08:29 +0000 (11:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Mar 2023 08:15:19 +0000 (08:15 +0000)
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>
net/smc/af_smc.c

index ff6dd86..c6b4a62 100644 (file)
@@ -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);