summaryrefslogtreecommitdiff
path: root/fs/lockd
diff options
context:
space:
mode:
authorRoberto Bergantinos Corpas <rbergant@redhat.com>2019-05-28 09:38:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-09 09:18:18 +0200
commitdea5d380e22c1bd754cd3f02ac75ca544b4f656e (patch)
tree9d99a14ddbea09adf5f4d2651b1f8c937e24291d /fs/lockd
parentf205a917143120bd0caceb79f68331ebb59edffb (diff)
CIFS: cifs_read_allocate_pages: don't iterate through whole page array on ENOMEM
commit 31fad7d41e73731f05b8053d17078638cf850fa6 upstream. In cifs_read_allocate_pages, in case of ENOMEM, we go through whole rdata->pages array but we have failed the allocation before nr_pages, therefore we may end up calling put_page with NULL pointer, causing oops Signed-off-by: Roberto Bergantinos Corpas <rbergant@redhat.com> Acked-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com> CC: Stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions