Files
linux/fs/cifs
Roberto Bergantinos Corpas 336c166217 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-11 12:24:10 +02:00
..
2017-05-20 14:27:01 +02:00
2018-09-05 09:18:37 +02:00
2019-04-27 09:33:49 +02:00
2017-05-08 07:46:01 +02:00
2012-07-24 10:25:13 -05:00
2017-05-08 07:46:01 +02:00
2013-09-08 14:54:24 -05:00