From: Stefan Raspl Date: Mon, 13 Mar 2023 10:08:29 +0000 (+0100) Subject: net/smc: Fix device de-init sequence X-Git-Tag: v6.6.7~3270^2~28^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d876d3ef27fa84355597ad269939772192356d8;p=platform%2Fkernel%2Flinux-starfive.git net/smc: Fix device de-init sequence CLC message initialization was not properly reversed in error handling path. Reported-and-suggested-by: Alexander Gordeev Signed-off-by: Stefan Raspl Signed-off-by: Wenjia Zhang Reviewed-by: Tony Lu Signed-off-by: David S. Miller --- diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index ff6dd86..c6b4a62 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);