diff options
author | Aurelien Aptel <aaptel@suse.com> | 2018-06-04 23:29:35 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-06-07 16:31:31 +0300 |
commit | 8ddecf5fd728d3c6373394fa647d28e7c27f93a7 (patch) | |
tree | df3913e2cb697e31eebca8180ea37180fbc36b8b /fs/cifs/connect.c | |
parent | 83210ba6f816823f1762fbe63bd4985d6274d205 (diff) | |
download | linux-8ddecf5fd728d3c6373394fa647d28e7c27f93a7.tar.xz |
CIFS: Fix NULL ptr deref
cifs->master_tlink is NULL against Win Server 2016 (which is
strange.. not sure why) and is dereferenced in cifs_sb_master_tcon().
move master_tlink getter to cifsglob.h so it can be used from
smb2misc.c
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index e5a2fe7f0dd4..9089b73809de 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -3116,12 +3116,6 @@ cifs_put_tlink(struct tcon_link *tlink) return; } -static inline struct tcon_link * -cifs_sb_master_tlink(struct cifs_sb_info *cifs_sb) -{ - return cifs_sb->master_tlink; -} - static int compare_mount_options(struct super_block *sb, struct cifs_mnt_data *mnt_data) { |