CIFS: Fix NULL pointer deref on SMB2_tcon() failure
authorAurélien Aptel <aaptel@suse.com>
Wed, 11 Oct 2017 11:23:36 +0000 (13:23 +0200)
committerSteve French <smfrench@gmail.com>
Wed, 25 Oct 2017 17:58:54 +0000 (12:58 -0500)
commitdb3b5474f462e77b82ca1e27627f03c47b622c99
tree050af9770bae04fc16b274f9c5f29d0f789952c1
parent48923d2a9d4f6ca909102061a4240b9896ff8ea2
CIFS: Fix NULL pointer deref on SMB2_tcon() failure

If SendReceive2() fails rsp is set to NULL but is dereferenced in the
error handling code.

Cc: stable@vger.kernel.org
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2pdu.c