aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/tracing_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/tracing_map.c')
-rw-r--r--kernel/trace/tracing_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/tracing_map.c b/kernel/trace/tracing_map.c
index 5cadb1b8b5fe..752d8042bad4 100644
--- a/kernel/trace/tracing_map.c
+++ b/kernel/trace/tracing_map.c
@@ -1075,7 +1075,7 @@ int tracing_map_sort_entries(struct tracing_map *map,
1075 struct tracing_map_sort_entry *sort_entry, **entries; 1075 struct tracing_map_sort_entry *sort_entry, **entries;
1076 int i, n_entries, ret; 1076 int i, n_entries, ret;
1077 1077
1078 entries = vmalloc(map->max_elts * sizeof(sort_entry)); 1078 entries = vmalloc(array_size(sizeof(sort_entry), map->max_elts));
1079 if (!entries) 1079 if (!entries)
1080 return -ENOMEM; 1080 return -ENOMEM;
1081 1081