summaryrefslogtreecommitdiff
path: root/include/linux/vmalloc.h
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-06-30 10:16:00 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2026-06-30 10:16:00 +0200
commit827b9aabd3ea3e96d5e48abed9f44dbd1e550d4e (patch)
tree845a97a83f20fe0585840a66d9eed8fcf1286772 /include/linux/vmalloc.h
parent3b3bce4a692ac60d9f4a341e6b597dd1fd0a28f9 (diff)
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff)
Merge drm/drm-next into drm-misc-next
Backmerging to get drm-misc-next to v7.2-rc1. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'include/linux/vmalloc.h')
-rw-r--r--include/linux/vmalloc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index 3b02c0c6b371..d87dc7f77f4e 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -265,7 +265,9 @@ static inline bool is_vm_area_hugepages(const void *addr)
* allocated in the vmalloc layer.
*/
#ifdef CONFIG_HAVE_ARCH_HUGE_VMALLOC
- return find_vm_area(addr)->page_order > 0;
+ struct vm_struct *area = find_vm_area(addr);
+
+ return area && area->page_order > 0;
#else
return false;
#endif