diff options
author | Markus Elfring <[email protected]> | 2016-08-28 11:40:53 +0200 |
---|---|---|
committer | Helge Deller <[email protected]> | 2016-09-20 18:02:56 +0200 |
commit | c4351d980ed88ac290136bfe59c8bd2b95f12b63 (patch) | |
tree | 8243e4270cb63121cea2a5543e1020228a42acc1 /tools/perf/util/trace-event-scripting.c | |
parent | 5baf919dd75817ba23423a8c9ef9be357fe2bb94 (diff) |
parisc: Use kmalloc_array() in add_system_map_addresses()
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kmalloc_array".
This issue was detected by using the Coccinelle software.
* Replace the specification of a data type by a pointer dereference
to make the corresponding size determination a bit safer according to
the Linux coding style convention.
Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions