Commit 4b216c8f authored by Paul Aurich's avatar Paul Aurich Committed by Greg Kroah-Hartman
Browse files

smb: Initialize cfid->tcon before performing network ops



[ Upstream commit c353ee4f ]

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: ebe98f14 ("cifs: enable caching of directories for which a lease is held")
Signed-off-by: default avatarPaul Aurich <paul@darkrain42.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 029ee002
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment