]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: fix refcount leak causing resource not released
authorZiyan Xu <ziyan@securitygossip.com>
Sat, 16 Aug 2025 01:20:05 +0000 (10:20 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:33 +0000 (16:28 +0200)
commita1d2bab4d53368a526c97aba92671dd71814f95a
treec56c9d9079dd404380d98fdec8841a730dcd3f5b
parent820949bbf33f3e8892c90c772a52f4082ea8d8f0
ksmbd: fix refcount leak causing resource not released

commit 89bb430f621124af39bb31763c4a8b504c9651e2 upstream.

When ksmbd_conn_releasing(opinfo->conn) returns true,the refcount was not
decremented properly, causing a refcount leak that prevents the count from
reaching zero and the memory from being released.

Cc: stable@vger.kernel.org
Signed-off-by: Ziyan Xu <ziyan@securitygossip.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/server/oplock.c