Re: [PATCH v2] lib/test_hmm: Check alloc_page_vma() return value
From: Andrew Morton
Date: Mon May 18 2026 - 17:33:23 EST
On Mon, 18 May 2026 11:19:03 +0800 liuqiangneo@xxxxxxx wrote:
> Return VM_FAULT_OOM if page allocation fails, which
> avoids a NULL pointer dereference when calling lock_page().
Patch looks good to me, but AI review is saying that two of
the calling functions are junk, and should be taught to handle
callee errors:
https://sashiko.dev/#/patchset/20260518031903.63455-1-liuqiangneo@xxxxxxx