Skip to content

Commit 1ebfea9

Browse files
hac-vgregkh
authored andcommitted
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: 065bd62 ("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>
1 parent a45d635 commit 1ebfea9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/smb/client/cached_dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ static void cfids_invalidation_worker(struct work_struct *work)
727727
list_for_each_entry_safe(cfid, q, &entry, entry) {
728728
list_del(&cfid->entry);
729729
/* Drop the ref-count acquired in invalidate_all_cached_dirs */
730-
kref_put(&cfid->refcount, smb2_close_cached_fid);
730+
close_cached_dir(cfid);
731731
}
732732
}
733733

0 commit comments

Comments
 (0)