summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2022-05-26 06:56:07 +0200
committerSteve French <stfrench@microsoft.com>2022-05-27 19:05:47 +0200
commit44a48081fc03187d3c047077f3ad3eb3a3eaf8fb (patch)
treea93dfc795d63a44b41af30102ed10f5e6bc32177 /fs/cifs/smb2ops.c
parentcifs: fix ntlmssp on old servers (diff)
downloadlinux-44a48081fc03187d3c047077f3ad3eb3a3eaf8fb.tar.xz
linux-44a48081fc03187d3c047077f3ad3eb3a3eaf8fb.zip
smb3: remove unneeded null check in cifs_readdir
Coverity pointed out an unneeded check. Addresses-Coverity: 1518030 ("Null pointer dereferences") Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/smb2ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 7e2c86e0cede..d7ade739cde1 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -770,6 +770,7 @@ smb2_cached_lease_break(struct work_struct *work)
/*
* Open the and cache a directory handle.
* Only supported for the root handle.
+ * If error then *cfid is not initialized.
*/
int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,
const char *path,