KVM: s390: fix guest fprs memory leak
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 22 Jan 2016 13:55:56 +0000 (14:55 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 26 Jan 2016 14:40:09 +0000 (15:40 +0100)
commit9c7ebb613bffea2feef4ec562ba1dbcaa810942b
tree15f543d04838f42999976d1de8337010434abf66
parent7d1fc01afc5af35e5197e0e75abe900f6bd279b8
KVM: s390: fix guest fprs memory leak

fprs is never freed, therefore resulting in a memory leak if
kvm_vcpu_init() fails or the vcpu is destroyed.

Fixes: 9977e886cbbc ("s390/kernel: lazy restore fpu registers")
Cc: stable@vger.kernel.org # v4.3+
Reported-by: Eric Farman <farman@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Eric Farman <farman@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c