aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/ioapic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
index ddf6aa998b18..8a9c6cc382f8 100644
--- a/virt/kvm/ioapic.c
+++ b/virt/kvm/ioapic.c
@@ -292,7 +292,7 @@ static int ioapic_mmio_write(struct kvm_io_device *this, gpa_t addr, int len,
292 data = *(u32 *) val; 292 data = *(u32 *) val;
293 else { 293 else {
294 printk(KERN_WARNING "ioapic: Unsupported size %d\n", len); 294 printk(KERN_WARNING "ioapic: Unsupported size %d\n", len);
295 return 0; 295 goto unlock;
296 } 296 }
297 297
298 addr &= 0xff; 298 addr &= 0xff;
@@ -313,6 +313,7 @@ static int ioapic_mmio_write(struct kvm_io_device *this, gpa_t addr, int len,
313 default: 313 default:
314 break; 314 break;
315 } 315 }
316unlock:
316 mutex_unlock(&ioapic->kvm->irq_lock); 317 mutex_unlock(&ioapic->kvm->irq_lock);
317 return 0; 318 return 0;
318} 319}