KVM: s390: unregister debug feature on failing arch init
authorMichael Mueller <mimu@linux.ibm.com>
Fri, 30 Nov 2018 14:32:06 +0000 (15:32 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 18 Dec 2018 09:18:27 +0000 (10:18 +0100)
commit308c3e6673b012beecb96ef04cc65f4a0e7cdd99
treebc0290abfe5429155a771583f2260a787b75d1c4
parentccda4af0f4b92f7b4c308d3acc262f4a7e3affad
KVM: s390: unregister debug feature on failing arch init

Make sure the debug feature and its allocated resources get
released upon unsuccessful architecture initialization.

A related indication of the issue will be reported as kernel
message.

Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20181130143215.69496-2-mimu@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c