Re: [PATCH v2 2/3] mm/memory.c: simplify error handling in insert_pages()

From: David Hildenbrand (Arm)

Date: Tue Aug 25 2026 - 06:42:31 EST


On 8/5/26 16:42, Avi Weiss wrote:
> Initialize error return status to zero and then set it as needed at each
> point of failure.
>
> Assign -ENOMEM explicitly when pte_alloc() fails as the pte_alloc()
> macro returns a boolean.

Subject should be "mm/memory: simplify" ...

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David