(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

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


Author Lance Yang Committer Dave Hansen Date Commit Parent 4f8c177c
+2 -1
1 changed file
+2 -1
1 changed file