Files
linux/fs/cifs
Roberto Bergantinos Corpas df2b6af414 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:22:43 +02:00
..
2016-10-13 19:48:11 -05:00
2016-09-16 12:44:21 +02:00
2017-05-20 14:28:40 +02:00
2018-09-05 09:20:05 +02:00
2019-04-05 22:29:07 +02:00
2017-05-08 07:47:55 +02:00
2012-07-24 10:25:13 -05:00
2017-05-08 07:47:55 +02:00
2013-09-08 14:54:24 -05:00