Files
linux/fs/cifs
Roberto Bergantinos Corpas dea5d380e2 CIFS: cifs_read_allocate_pages: don't iterate through whole page array on ENOMEM
commit 31fad7d41e 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>
2019-06-09 09:18:18 +02:00
..
2016-10-13 19:48:11 -05:00
2017-09-17 23:10:48 -05:00
2018-09-05 09:26:33 +02:00
2019-04-05 22:31:28 +02:00
2018-04-24 09:36:27 +02:00
2013-09-08 14:54:24 -05:00