fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()
[ Upstream commit 32e9212256b88f35466642f9c939bb40cfb2c2de ] Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
962a3d3d73
commit
2de328398b
@ -2100,7 +2100,7 @@ out1:
|
||||
|
||||
for (i = 0; i < pages_per_frame; i++) {
|
||||
pg = pages[i];
|
||||
if (i == idx)
|
||||
if (i == idx || !pg)
|
||||
continue;
|
||||
unlock_page(pg);
|
||||
put_page(pg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user