summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLance Yang <lance.yang@linux.dev>2026-10-01 16:15:55 +0800
committerDave Hansen <dave.hansen@linux.intel.com>2026-10-01 05:04:44 -0700
commitd92b5ac5aeba1ffc734576e30a5bca882722de76 (patch)
tree19705878643cc289e02ed2efd02eebf7262d42f5 /include/uapi/linux
parent4f8c177caac8ecdedeb95caa673214fc3f6a75cb (diff)
downloadlinux-next-d92b5ac5aeba1ffc734576e30a5bca882722de76.tar.gz
linux-next-d92b5ac5aeba1ffc734576e30a5bca882722de76.zip
x86/mm: Fix spurious warning on __add_pages() failure
__add_pages() can fail if we run out of memory. Callers already handle that. Do not WARN_ON_ONCE() just because an allocation failed. Return the error instead, and only update the end-of-memory variables after __add_pages() succeeds. [ dhansen: imperative voice changelog fixups ] Fixes: 10f22dde556d ("x86: arch/x86/mm/init_64.c printk fixes") Reported-by: David Hildenbrand <david@kernel.org> Suggested-by: Muchun Song <muchun.song@linux.dev> Signed-off-by: Lance Yang <lance.yang@linux.dev> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: David Hildenbrand (Arm) <david@kernel.org> Acked-by: Muchun Song <muchun.song@linux.dev> Link: https://lore.kernel.org/all/d4fac8af-fd71-47a2-bfe9-3c6559b92209@kernel.org/ Link: https://lore.kernel.org/all/203892F4-B04A-4F69-A1B3-DC1619176C67@linux.dev/ Link: https://patch.msgid.link/20261001081555.35485-1-lance.yang@linux.dev
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions