diff options
author | Bryan Cantrill <bryan@joyent.com> | 2011-08-01 21:53:08 -0700 |
---|---|---|
committer | Bryan Cantrill <bryan@joyent.com> | 2011-08-01 21:53:08 -0700 |
commit | c0cb8e8ed88a815cfa3956b0cc2720a58ef8af49 (patch) | |
tree | a467a2bce12d132811244982a84bce906716f442 /kvm_coalesced_mmio.c | |
parent | 2520c67c3d7625d45cb82d109ce3d1e77513f88d (diff) | |
download | illumos-kvm-c0cb8e8ed88a815cfa3956b0cc2720a58ef8af49.tar.gz |
HVM-543 clean-up some random XXXs
Diffstat (limited to 'kvm_coalesced_mmio.c')
-rw-r--r-- | kvm_coalesced_mmio.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kvm_coalesced_mmio.c b/kvm_coalesced_mmio.c index d231c2e..50c5b4d 100644 --- a/kvm_coalesced_mmio.c +++ b/kvm_coalesced_mmio.c @@ -106,8 +106,7 @@ kvm_coalesced_mmio_init(struct kvm *kvm) ret = -ENOMEM; dev = kmem_zalloc(sizeof (struct kvm_coalesced_mmio_dev), KM_SLEEP); - if (!dev) - goto out_free_page; + mutex_init(&dev->lock, NULL, MUTEX_DRIVER, 0); kvm_iodevice_init(&dev->dev, &coalesced_mmio_ops); dev->kvm = kvm; @@ -123,12 +122,6 @@ kvm_coalesced_mmio_init(struct kvm *kvm) out_free_dev: kmem_free(dev, sizeof (struct kvm_coalesced_mmio_dev)); -out_free_page: -#ifdef XXX - kmem_free(page, PAGESIZE); -#else - XXX_KVM_PROBE; -#endif ddi_umem_free(kvm->mmio_cookie); return (ret); } |