summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2020-02-04 20:02:59 +0100
committerSteve French <stfrench@microsoft.com>2020-02-05 13:32:19 +0100
commit87f93d82e0952da18af4d978e7d887b4c5326c0b (patch)
treea72e97199d9fbad3c709c34bd33dcffc9292e86b /fs/cifs/smb2ops.c
parentSMB3: Backup intent flag missing from some more ops (diff)
downloadlinux-87f93d82e0952da18af4d978e7d887b4c5326c0b.tar.xz
linux-87f93d82e0952da18af4d978e7d887b4c5326c0b.zip
smb3: fix problem with null cifs super block with previous patch
Add check for null cifs_sb to create_options helper Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/smb2ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 33bb86cae369..ac6628e28b12 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -2407,7 +2407,7 @@ smb2_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
FS_FULL_SIZE_INFORMATION,
SMB2_O_INFO_FILESYSTEM,
sizeof(struct smb2_fs_full_size_info),
- &rsp_iov, &buftype, NULL);
+ &rsp_iov, &buftype, cifs_sb);
if (rc)
goto qfs_exit;