Unverified Commit 157d5d0e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14851 nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint

parents 077fe6dc 0ac60bc0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index,
	first_block = (unsigned long)index << (PAGE_SHIFT - blkbits);
	bh = nilfs_page_get_nth_block(page, block - first_block);

	touch_buffer(bh);
	wait_on_buffer(bh);
	return bh;
}