Re: [PATCH v3 1/2] x86/mm: Handle alloc failure in phys_*_init()

From: Dave Hansen
Date: Tue Jun 10 2025 - 11:08:31 EST


On 6/10/25 03:16, Em Sharnoff wrote:
> + /*
> + * phys_{ppmd,pud,p4d}_init return allocation errors via ERR_PTR.

^ typo?

> + * phys_pte_init makes no allocations, so should not error.
> + */
> + BUG_ON(IS_ERR((void *)paddr_last));