summaryrefslogtreecommitdiff
path: root/block/badblocks.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2019-07-16 10:41:46 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-26 09:10:51 +0200
commit98c3db87aae1903f196dee195506150f0ab7edb0 (patch)
tree2c51c71f62c0b6273e0c6bcffac04fc4404f2ace /block/badblocks.c
parent68421c9014d818fb991e98b53f6b05242eab37ed (diff)
cifs: fix crash in smb2_compound_op()/smb2_set_next_command()
commit 88a92c913cef09e70b1744a8877d177aa6cb2189 upstream. RHBZ: 1722704 In low memory situations the various SMB2_*_init() functions can fail to allocate a request PDU and thus leave the request iovector as NULL. If we don't check the return code for failure we end up calling smb2_set_next_command() with a NULL iovector causing a crash when it tries to dereference it. CC: Stable <stable@vger.kernel.org> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/badblocks.c')
0 files changed, 0 insertions, 0 deletions