]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - kernel/cgroup/cgroup-v1.c
treewide: kmalloc() -> kmalloc_array()
[mirror_ubuntu-hirsute-kernel.git] / kernel / cgroup / cgroup-v1.c
index e06c97f3ed1a39c3e43a7895158b6a4a298d2bf3..9b3f9b04f8175d98ea3e24bd57625066310dd7df 100644 (file)
@@ -197,7 +197,7 @@ static void *pidlist_allocate(int count)
        if (PIDLIST_TOO_LARGE(count))
                return vmalloc(count * sizeof(pid_t));
        else
-               return kmalloc(count * sizeof(pid_t), GFP_KERNEL);
+               return kmalloc_array(count, sizeof(pid_t), GFP_KERNEL);
 }
 
 static void pidlist_free(void *p)