lkml.org 
[lkml]   [2026]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] lib/test_hmm: Check alloc_page_vma() return value
On Mon, 18 May 2026 11:19:03 +0800 liuqiangneo@163.com 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@163.com

\
 
 \ /
  Last update: 2026-05-18 23:33    [W:0.049 / U:1.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog