From: Thomas Huth Date: Thu, 20 Mar 2014 12:20:46 +0000 (+0100) Subject: KVM: s390: Fix possible memory leak in SIGP functions X-Git-Tag: v3.15-rc1~118^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91880d07fc9b2b6b7a726765039897af99d9ca78;p=pandora-kernel.git 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 Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed