Skip to content

Commit abd29b6

Browse files
hac-vgregkh
authored andcommitted
smb: client: fix incomplete backport in cfids_invalidation_worker()
The previous commit bdb596c ("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: bdb596c ("smb: client: fix potential UAF in smb2_close_cached_fid()")" Signed-off-by: Henrique Carvalho <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent eef72d8 commit abd29b6

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
@@ -755,7 +755,7 @@ static void cfids_invalidation_worker(struct work_struct *work)
755755
list_for_each_entry_safe(cfid, q, &entry, entry) {
756756
list_del(&cfid->entry);
757757
/* Drop the ref-count acquired in invalidate_all_cached_dirs */
758-
kref_put(&cfid->refcount, smb2_close_cached_fid);
758+
close_cached_dir(cfid);
759759
}
760760
}
761761

0 commit comments

Comments
 (0)