OSDN Git Service

cifs: add NULL check for ses->tcon_ipc
authorAurelien Aptel <aaptel@suse.com>
Thu, 3 Dec 2020 18:46:08 +0000 (19:46 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 3 Dec 2020 23:06:03 +0000 (17:06 -0600)
commit59463eb88829f646aed13283fd84d02a475334fe
tree5d1f843d47fcccd259a9e8cc94c6de58f92d73b1
parent796317848517292eb951d8876773b98867cf3c28
cifs: add NULL check for ses->tcon_ipc

In some scenarios (DFS and BAD_NETWORK_NAME) set_root_set() can be
called with a NULL ses->tcon_ipc.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c