mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 04:31:58 +08:00
fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()
[ Upstream commit 32e9212256
]
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
6fe32f79ab
commit
c8cbae3cbb
@ -2149,7 +2149,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…
Reference in New Issue
Block a user