]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb/server: fix refcount leak in parse_durable_handle_context()
authorZhangGuoDong <zhangguodong@kylinos.cn>
Mon, 29 Dec 2025 02:13:29 +0000 (10:13 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 29 Dec 2025 23:39:58 +0000 (17:39 -0600)
commit3296c3012a9d9a27e81e34910384e55a6ff3cff0
tree4d468688db8a263f0d537fc69a516e2569868fbc
parent7c28f8eef5ac5312794d8a52918076dcd787e53b
smb/server: fix refcount leak in parse_durable_handle_context()

When the command is a replay operation and -ENOEXEC is returned,
the refcount of ksmbd_file must be released.

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