CIFS: Possible null ptr deref in SMB2_tcon
authorSteve French <smfrench@gmail.com>
Sun, 17 Aug 2014 05:22:24 +0000 (00:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:26 +0000 (09:19 -0700)
commite6fc2f0c1df49edd76d34517133fab7fb93cd5cc
treed527fcdfce3cf47a398ede23eac0f9480f91f65d
parentd97cad5311f722aefc9cb7b3bbf723b9e73c6598
CIFS: Possible null ptr deref in SMB2_tcon

commit 18f39e7be0121317550d03e267e3ebd4dbfbb3ce upstream.

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: Steve French <smfrench@gmail.com>
Reported-by: Raphael Geissert <geissert@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c