aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2025-04-19 06:36:53 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-05-12 23:50:32 -0700
commitb25f97d0f8043903a64e3a203b79219cc69f2f77 (patch)
tree7826611236bb13050e9a791c644c5ba36414205a /mm/page_alloc.c
parentmm/vmalloc: optimize function vm_unmap_aliases() (diff)
downloadlinux-b25f97d0f8043903a64e3a203b79219cc69f2f77.tar.gz
linux-b25f97d0f8043903a64e3a203b79219cc69f2f77.zip
mm/vmalloc.c: return explicit error value in alloc_vmap_area()
In codes of alloc_vmap_area(), it returns the upper bound 'vend' to indicate if the allocation is successful or failed. That is not very clear. Here change to return explicit error values and check them to judge if allocation is successful. Link: https://lkml.kernel.org/r/20250418223653.243436-6-bhe@redhat.com Signed-off-by: Baoquan He <bhe@redhat.com> Reviewed-by: Shivank Garg <shivankg@amd.com> Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions