aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_vmalloc.c
diff options
context:
space:
mode:
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>2023-08-07 13:29:40 +0300
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>2023-08-07 13:29:40 +0300
commit9f771739a04919226081a107167596de75108fbb (patch)
treefd64841d76f3408ed5d25f4d9aaa5088a752e2fd /lib/test_vmalloc.c
parentdrm/i915/guc/slpc: Restore efficient freq earlier (diff)
parentMerge tag 'drm-intel-gt-next-2023-08-04' of git://anongit.freedesktop.org/drm/drm-intel into drm-next (diff)
downloadlinux-rng-9f771739a04919226081a107167596de75108fbb.tar.xz
linux-rng-9f771739a04919226081a107167596de75108fbb.zip
Merge drm/drm-next into drm-intel-gt-next
Need to pull in b3e4aae612ec ("drm/i915/hdcp: Modify hdcp_gsc_message msg sending mechanism") as a dependency for https://patchwork.freedesktop.org/series/121735/ Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'lib/test_vmalloc.c')
-rw-r--r--lib/test_vmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c
index 9dd9745d365f..3718d9886407 100644
--- a/lib/test_vmalloc.c
+++ b/lib/test_vmalloc.c
@@ -369,7 +369,7 @@ vm_map_ram_test(void)
int i;
map_nr_pages = nr_pages > 0 ? nr_pages:1;
- pages = kmalloc(map_nr_pages * sizeof(struct page), GFP_KERNEL);
+ pages = kcalloc(map_nr_pages, sizeof(struct page *), GFP_KERNEL);
if (!pages)
return -1;