Skip to content

Commit 32e9212

Browse files
fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()
Signed-off-by: Konstantin Komarov <[email protected]>
1 parent e52dce6 commit 32e9212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs3/frecord.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ int ni_readpage_cmpr(struct ntfs_inode *ni, struct page *page)
21482148

21492149
for (i = 0; i < pages_per_frame; i++) {
21502150
pg = pages[i];
2151-
if (i == idx)
2151+
if (i == idx || !pg)
21522152
continue;
21532153
unlock_page(pg);
21542154
put_page(pg);

0 commit comments

Comments
 (0)