CIFS: Fix NULL ptr deref
authorAurelien Aptel <aaptel@suse.com>
Mon, 4 Jun 2018 20:29:35 +0000 (22:29 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 7 Jun 2018 13:31:31 +0000 (08:31 -0500)
commit8ddecf5fd728d3c6373394fa647d28e7c27f93a7
treedf3913e2cb697e31eebca8180ea37180fbc36b8b
parent83210ba6f816823f1762fbe63bd4985d6274d205
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>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/smb2misc.c