]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/server: fix possible refcount leak in smb2_sess_setup()
authorZhangGuoDong <zhangguodong@kylinos.cn>
Sat, 11 Oct 2025 16:51:36 +0000 (00:51 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 15 Oct 2025 11:03:09 +0000 (06:03 -0500)
commit379510a815cb2e64eb0a379cb62295d6ade65df0
tree3c9452823238459708a9bc60a7b1a6abc0943531
parent6fced056d2cc8d01b326e6fcfabaacb9850b71a4
smb/server: fix possible refcount leak in smb2_sess_setup()

Reference count of ksmbd_session will leak when session need reconnect.
Fix this by adding the missing ksmbd_user_session_put().

Co-developed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c