Re: [PATCH 1/2] huge_mm.h: is_huge_zero_folio(NULL) should return false

From: Max Kellermann
Date: Wed Aug 27 2025 - 06:13:57 EST


On Wed, Aug 27, 2025 at 11:36 AM David Hildenbrand <david@xxxxxxxxxx> wrote:
> Why should it be allowed to pass in garbage (folio == NULL) into a
> function that operates on valid folios?

This patch isn't about the function parameter but about the global
variable being NULL.
(Don't mix up with my other patch.)