Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: return an error code in kvm_vm_ioctl_register_coalesced_mmio()
If kvm_io_bus_register_dev() fails then it returns success but it should return an error code. I also did a little cleanup like removing an impossible NULL test. Cc: [email protected] Fixes: 2b3c246 ('KVM: Make coalesced mmio use a device per zone') Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information