diff options
author | 2016-08-28 18:30:38 +0200 | |
---|---|---|
committer | 2016-09-12 10:12:56 +1000 | |
commit | b0ac477bc4efd6b9a3eccc106e597edf27546c11 (patch) | |
tree | 9dd4fbcbc70f610fd24ddc9d94a549fa2310ba84 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: PPC: e500: Delete an unnecessary initialisation in kvm_vcpu_ioctl_config_tlb() (diff) | |
download | wireguard-linux-b0ac477bc4efd6b9a3eccc106e597edf27546c11.tar.xz wireguard-linux-b0ac477bc4efd6b9a3eccc106e597edf27546c11.zip |
KVM: PPC: e500: Replace kzalloc() calls by kcalloc() in two functions
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kcalloc".
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
This issue was detected also by using the Coccinelle software.
* Replace the specification of data structures by pointer dereferences
to make the corresponding size determination a bit safer according to
the Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions