Re: [PATCH v1] KVM: kvm_io_bus_unregister_dev() should never fail

From: David Hildenbrand
Date: Thu Mar 23 2017 - 13:15:14 EST



>
> Either that, or an early exit for bus == NULL in kvm_io_bus_destroy().
> (I think the second option is more straightforward.)

I prefer to have the checks where kvm->buses[x] is actually accessed. So
the chance of missing yet another check is easier to verify.

Will send out v2 in a couple of minutes. Thanks!

--

Thanks,

David