Re: [PATCH v2 1/4] mm: update walk_to_pmd() to explicitly return an error
From: T.J. Mercier
Date: Tue Nov 24 2026 - 13:45:21 EST
On Tue, Nov 17, 2026 at 10:32 AM Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx> wrote:
>
> Rather than callers inferring an error from a NULL pmd return, explicitly
> return error codes.
>
> This allows different error codes to be returned for different failure
> conditions.
>
> No functional change intended.
>
> This is a prerequisite for the fix to insert_pfn() which follows, as that
> needs to be able to tell a failure to allocate a page table apart from a
> race with a huge fault, so mark it for stable alongside that fix.
>
> Fixes: f9e54c3a2f5b ("vfio/pci: implement huge_fault support")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
Reviewed-by: T.J. Mercier <tjmercier@xxxxxxxxxx>