summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2017-09-08 02:37:35 +0200
committerSteve French <smfrench@gmail.com>2017-09-13 01:11:44 +0200
commitbf2afee14e07de16d3cafc67edbfc2a3cc65e4bc (patch)
treeaba3efa9b9ef3af8c4d233c6acddc47c07fcc946 /Documentation
parentMerge tag 'dma-mapping-4.14' of git://git.infradead.org/users/hch/dma-mapping (diff)
downloadlinux-bf2afee14e07de16d3cafc67edbfc2a3cc65e4bc.tar.xz
linux-bf2afee14e07de16d3cafc67edbfc2a3cc65e4bc.zip
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions