OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:26:50 +0000 (15:26 +0100)
commit2d4b497aa859f4ba4ec21c0ef4f78018f050d36e
tree654c8b5143b479dee1e8e36461c7b8ce400bfc8a
parentfd2c3d2f6dc26502913b98f728e19e849302bf01
KVM: s390: unregister debug feature on failing arch init

[ Upstream commit 308c3e6673b012beecb96ef04cc65f4a0e7cdd99 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kvm/kvm-s390.c