Skip to content

Commit

Permalink
net/smc: Fix device de-init sequence
Browse files Browse the repository at this point in the history
CLC message initialization was not properly reversed in error handling path.

Reported-and-suggested-by: Alexander Gordeev <[email protected]>
Signed-off-by: Stefan Raspl <[email protected]>
Signed-off-by: Wenjia Zhang <[email protected]>
Reviewed-by: Tony Lu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Stefan Raspl authored and davem330 committed Mar 15, 2023
1 parent 13085e1 commit 9d876d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/smc/af_smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3501,6 +3501,7 @@ static int __init smc_init(void)
out_nl:
smc_nl_exit();
out_ism:
smc_clc_exit();
smc_ism_exit();
out_pernet_subsys_stat:
unregister_pernet_subsys(&smc_net_stat_ops);
Expand Down

0 comments on commit 9d876d3

Please sign in to comment.