Missing null tcon check
Subsystems (2)
PATCH 1/1 Missing null tcon check
Pointed out by Dan Carpenter via smatch code analysis tool
CC Dan Carpenter <[email protected]>
--- fs/cifs/smb2pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/smb2pdu.c +1 -1
@@ -922,7 +922,7 @@ SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree,if (tcon && tcon->bad_network_name)return -ENOENT ; -if ((tcon->seal) && +if ((tcon && tcon->seal) && ((ses->server->capabilities &SMB2_GLOBAL_CAP_ENCRYPTION ) ==0 )) {cifs_dbg (VFS ,"encryption requested but no server support" );return -EOPNOTSUPP ;
Signature · 1 line
1.9.1