aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMarkus Elfring <[email protected]>2016-08-24 19:45:23 +0200
committerChristian Borntraeger <[email protected]>2016-09-08 13:40:54 +0200
commita1708a2eaded836b7fe64e89a137336c0e6244ea (patch)
treedae558022be44c3585e4315d922ed6f9c3def0b0 /lib/memory-notifier-error-inject.c
parenta6940674c384ebf56aa0c44f417032de2b67100c (diff)
KVM: s390: Improve determination of sizes in kvm_s390_import_bp_data()
* 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". Suggested-by: Paolo Bonzini <[email protected]> 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. * Delete the local variable "size" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring <[email protected]> Acked-by: Cornelia Huck <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions