Re: [PATCH] mm/folio-compact: fix potential NULL pointer in pagecache_get_page

From: Matthew Wilcox
Date: Wed Jul 27 2022 - 09:29:41 EST


On Wed, Jul 27, 2022 at 06:46:21AM +0000, Yongqiang Liu wrote:
> When __filemap_get_folio() failed and returned NULL, we would
> get a NULL pointer dereference in pagecache_get_page.

No we wouldn't.