Ronnie Sahlberg bf2afee14e cifs: check rsp for NULL before dereferencing in SMB2_open
In SMB2_open there are several paths where the SendReceive2
call will return an error before it sets rsp_iov.iov_base
thus leaving iov_base uninitialized.

Thus we need to check rsp before we dereference it in
the call to get_rfc1002_length().

A report of this issue was previously reported in
http://www.spinics.net/lists/linux-cifs/msg12846.html

RH-bugzilla : 1476151

Version 2 :
* Lets properly initialize rsp_iov before we use it.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>.
Signed-off-by: Steve French <smfrench@gmail.com>
Reported-by: Xiaoli Feng <xifeng@redhat.com>
CC: Stable <stable@vger.kernel.org>
2017-09-12 18:11:44 -05:00
..
2016-10-13 19:48:11 -05:00
2017-04-07 08:04:41 -05:00
2013-11-08 05:57:46 +09:00
2017-01-14 14:58:29 -06:00
2017-03-02 23:13:37 -06:00
2017-06-20 19:13:47 -05:00
2017-05-03 10:10:10 -05:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00