Unverified Commit 32e92122 authored by Konstantin Komarov's avatar Konstantin Komarov
Browse files

fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()

parent e52dce61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2148,7 +2148,7 @@ int ni_readpage_cmpr(struct ntfs_inode *ni, struct page *page)

	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);