Commit 9b326dfc authored by Denis Petrovic's avatar Denis Petrovic Committed by Greg Kroah-Hartman
Browse files

staging: lustre: replace kmalloc with kmalloc_array

This patch fixes the following warning:

WARNING: Prefer kmalloc_array over kmalloc with multiply
Signed-off-by: default avatarDenis Petrovic <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 878c33a7
......@@ -57,8 +57,9 @@ int cfs_tracefile_init_arch(void)
memset(cfs_trace_data, 0, sizeof(cfs_trace_data));
for (i = 0; i < CFS_TCD_TYPE_MAX; i++) {
cfs_trace_data[i] =
kmalloc(sizeof(union cfs_trace_data_union) *
num_possible_cpus(), GFP_KERNEL);
sizeof(union cfs_trace_data_union),
if (!cfs_trace_data[i])
goto out;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment