diff options
author | Markus Elfring <[email protected]> | 2016-08-25 11:34:03 +0200 |
---|---|---|
committer | Matt Fleming <[email protected]> | 2016-09-09 16:08:55 +0100 |
commit | 20ebc15e6c8f9772804fa10110bf074a7b1d25fa (patch) | |
tree | a39b67fbfcecaffbdeddb6b6b6f1b4bbae33f13b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | cb82cce7035ec22a69ab3bd4d2fe6729527ce1ca (diff) |
x86/efi: Use kmalloc_array() in efi_call_phys_prolog()
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus reuse 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]>
Reviewed-by: Paolo Bonzini <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Julia Lawall <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions