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

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

parents 400eaf3b 5b875b7e
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;
}