KVM: arm/arm64: vgic: Check return value for kvm_register_vgic_device
authorAndre Przywara <andre.przywara@arm.com>
Fri, 15 Jul 2016 11:43:23 +0000 (12:43 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 18 Jul 2016 17:10:08 +0000 (18:10 +0100)
commit42c8870f90098796c2ed7c9eaa3e7526407502a8
tree05610f90cd7a20be3f551b391bc6aafa678c2cfb
parent8f6cdc1c2eec20c3bbf3a83ad0e1db165f709917
KVM: arm/arm64: vgic: Check return value for kvm_register_vgic_device

kvm_register_device_ops() can return an error, so lets check its return
value and propagate this up the call chain.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-kvm-device.c
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c
virt/kvm/arm/vgic/vgic.h