diff options
author | 2014-03-20 13:20:46 +0100 | |
---|---|---|
committer | 2014-03-25 13:27:11 +0100 | |
commit | 91880d07fc9b2b6b7a726765039897af99d9ca78 (patch) | |
tree | ac9073770af435f86dfc8f8dc616dae436aaff5a /tools/perf/scripts/python/syscall-counts.py | |
parent | KVM: s390: fix calculation of idle_mask array size (diff) | |
download | wireguard-linux-91880d07fc9b2b6b7a726765039897af99d9ca78.tar.xz wireguard-linux-91880d07fc9b2b6b7a726765039897af99d9ca78.zip |
KVM: s390: Fix possible memory leak in SIGP functions
When kvm_get_vcpu() returned NULL for the destination CPU in
__sigp_emergency() or __sigp_external_call(), the memory for the
"inti" structure was not released anymore. This patch fixes this
issue by moving the check for !dst_vcpu before the kzalloc() call.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions