summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/super.c
diff options
context:
space:
mode:
authorRoberto Bergantinos Corpas <rbergant@redhat.com>2019-05-28 09:38:14 +0200
committerSteve French <stfrench@microsoft.com>2019-05-29 21:02:11 +0200
commit31fad7d41e73731f05b8053d17078638cf850fa6 (patch)
treea3f2c3ddb1bc7355b7fb2c1769d1ff428acc489a /fs/ocfs2/super.c
parentdfs_cache: fix a wrong use of kfree in flush_cache_ent() (diff)
downloadlinux-31fad7d41e73731f05b8053d17078638cf850fa6.tar.xz
linux-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 <rbergant@redhat.com> Acked-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com> CC: Stable <stable@vger.kernel.org>
Diffstat (limited to 'fs/ocfs2/super.c')
0 files changed, 0 insertions, 0 deletions