]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71daa27d92192b1fc1984bbee12038529a0da79d
tree5d1f843d47fcccd259a9e8cc94c6de58f92d73b1
parent177c1494bb8387c2cffaf380e3b24a86feffcdfe
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