commit | 91880d07fc9b2b6b7a726765039897af99d9ca78 | [log] [tgz] |
---|---|---|
author | Thomas Huth <thuth@linux.vnet.ibm.com> | Thu Mar 20 13:20:46 2014 +0100 |
committer | Christian Borntraeger <borntraeger@de.ibm.com> | Tue Mar 25 13:27:11 2014 +0100 |
tree | ac9073770af435f86dfc8f8dc616dae436aaff5a | |
parent | 609433fbed4f25e11e8b058ab7e9478b212879a9 [diff] |
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>