Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18f39e7b authored by Steve French's avatar Steve French
Browse files

[CIFS] Possible null ptr deref in SMB2_tcon



As Raphael Geissert pointed out, tcon_error_exit can dereference tcon
and there is one path in which tcon can be null.

Signed-off-by: default avatarSteve French <smfrench@gmail.com>
CC: Stable <stable@vger.kernel.org> # v3.7+
Reported-by: default avatarRaphael Geissert <geissert@debian.org>
parent 754789a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -907,6 +907,7 @@ SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree,
tcon_error_exit:
	if (rsp->hdr.Status == STATUS_BAD_NETWORK_NAME) {
		cifs_dbg(VFS, "BAD_NETWORK_NAME: %s\n", tree);
		if (tcon)
			tcon->bad_network_name = true;
	}
	goto tcon_exit;