]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: fix locking for crypto setting error path
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 4 Oct 2018 12:42:43 +0000 (14:42 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 5 Oct 2018 08:04:03 +0000 (10:04 +0200)
commitc48dcdf0cd492e6a9726dd29dabf9582a8b0b636
treebb97edd95eccb04613c13c530478ad7e9fb7af6d
parent11a674f91b33b827354f63d88758f62080053b98
KVM: s390: fix locking for crypto setting error path

We need to unlock the kvm->lock mutex in the error case.

Reported-by: smatch
Fixes: d64a91971f7c8d0189d ("KVM: s390: device attrs to enable/disable AP interpretation")
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c