summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2024-11-26 18:50:31 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:03:08 +0100
commit1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262 (patch)
tree0b1fbeb5dfa26244ba609a47b1ec8f388cbfd367 /block
parent34d321f4536cc6ba5dc1075436b8a5abea3790cd (diff)
downloadlinux-1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262.tar.gz
linux-1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262.tar.bz2
linux-1b9ab6b648f89441c8a13cb3fd8ca83ffebc5262.zip
smb: Initialize cfid->tcon before performing network ops
[ Upstream commit c353ee4fb119a2582d0e011f66a76a38f5cf984d ] Avoid leaking a tcon ref when a lease break races with opening the cached directory. Processing the leak break might take a reference to the tcon in cached_dir_lease_break() and then fail to release the ref in cached_dir_offload_close, since cfid->tcon is still NULL. Fixes: ebe98f1447bb ("cifs: enable caching of directories for which a lease is held") Signed-off-by: Paul Aurich <paul@darkrain42.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions