projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b55a814
)
KVM: s390: Fix memory leak on busy SIGP stop
author
Christian Borntraeger
<
[email protected]
>
Mon, 28 Jul 2014 09:52:02 +0000
(11:52 +0200)
committer
Christian Borntraeger
<
[email protected]
>
Wed, 30 Jul 2014 13:29:40 +0000
(15:29 +0200)
commit
7dfc63cf977447e09b1072911c22564f900fc578
(KVM: s390: allow only one SIGP STOP (AND STORE STATUS) at a time)
introduced a memory leak if a sigp stop is already pending. Free
the allocated inti structure.
Signed-off-by: Christian Borntraeger <
[email protected]
>
Reviewed-by: David Hildenbrand <
[email protected]
>
arch/s390/kvm/sigp.c
patch
|
blob
|
history
diff --git
a/arch/s390/kvm/sigp.c
b/arch/s390/kvm/sigp.c
index c6f1c2bc9753919f1dc87df96d2f263db297a4d1..cf243ba3d50f2907277ce18a1af88944ff5efc55 100644
(file)
--- a/
arch/s390/kvm/sigp.c
+++ b/
arch/s390/kvm/sigp.c
@@
-139,6
+139,7
@@
static int __inject_sigp_stop(struct kvm_vcpu *dst_vcpu, int action)
spin_lock(&li->lock);
if (li->action_bits & ACTION_STOP_ON_STOP) {
/* another SIGP STOP is pending */
+ kfree(inti);
rc = SIGP_CC_BUSY;
goto out;
}