diff options
| author | Roberto Bergantinos Corpas <[email protected]> | 2019-05-28 07:38:14 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2019-05-29 19:02:11 +0000 |
| commit | 31fad7d41e73731f05b8053d17078638cf850fa6 (patch) | |
| tree | a3f2c3ddb1bc7355b7fb2c1769d1ff428acc489a /fs/proc/array.c | |
| parent | dfs_cache: fix a wrong use of kfree in flush_cache_ent() (diff) | |
| download | kernel-31fad7d41e73731f05b8053d17078638cf850fa6.tar.gz kernel-31fad7d41e73731f05b8053d17078638cf850fa6.zip | |
CIFS: cifs_read_allocate_pages: don't iterate through whole page array on ENOMEM
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 <[email protected]>
Acked-by: Pavel Shilovsky <[email protected]>
Signed-off-by: Steve French <[email protected]>
CC: Stable <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
