From: Sayooj K Karun Date: Wed, 19 Nov 2025 08:57:47 +0000 (+0530) Subject: net: atm: fix incorrect cleanup function call in error path X-Git-Tag: v6.18~19^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b4749b7b4b3badabd0fa26f454782842db6ae53;p=thirdparty%2Flinux.git net: atm: fix incorrect cleanup function call in error path In atm_init(), if atmsvc_init() fails, the code jumps to out_atmpvc_exit label which incorrectly calls atmsvc_exit() instead of atmpvc_exit(). This results in calling the wrong cleanup function and failing to properly clean up atmpvc_init(). Fix this by calling atmpvc_exit() in the out_atmpvc_exit error path. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Sayooj K Karun Link: https://patch.msgid.link/20251119085747.67139-1-sayooj@aerlync.com Signed-off-by: Jakub Kicinski --- diff --git a/net/atm/common.c b/net/atm/common.c index 881c7f259dbd4..c4edc1111bf01 100644 --- a/net/atm/common.c +++ b/net/atm/common.c @@ -881,7 +881,7 @@ out_atmproc_exit: out_atmsvc_exit: atmsvc_exit(); out_atmpvc_exit: - atmsvc_exit(); + atmpvc_exit(); out_unregister_vcc_proto: proto_unregister(&vcc_proto); goto out;