]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: fix incomplete backport in cfids_invalidation_worker()
authorHenrique Carvalho <henrique.carvalho@suse.com>
Wed, 26 Nov 2025 13:55:53 +0000 (10:55 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:46:06 +0000 (11:46 +0100)
commitabd29b6e17a918fdd68352ce4813e167acc8727e
tree1844cad7bcfa7e08b493dd19c5d2c17bc90e957a
parenteef72d856f978955e633c270abb1f7ec7b61c6d2
smb: client: fix incomplete backport in cfids_invalidation_worker()

The previous commit bdb596ceb4b7 ("smb: client: fix potential UAF in
smb2_close_cached_fid()") was an incomplete backport and missed one
kref_put() call in cfids_invalidation_worker() that should have been
converted to close_cached_dir().

Fixes: bdb596ceb4b7 ("smb: client: fix potential UAF in smb2_close_cached_fid()")"
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cached_dir.c