Message ID | 20150626161102.GB4767@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/virt/kvm/irqchip.c b/virt/kvm/irqchip.c index 21c1424..239f4ec 100644 --- a/virt/kvm/irqchip.c +++ b/virt/kvm/irqchip.c @@ -207,14 +207,15 @@ int kvm_set_irq_routing(struct kvm *kvm, for (i = 0; i < nr; ++i) { struct kvm_kernel_irq_routing_entry *e; + r = -EINVAL; + if (ue->flags) + goto out; + r = -ENOMEM; e = kzalloc(sizeof(*e), GFP_KERNEL); if (!e) goto out; - r = -EINVAL; - if (ue->flags) - goto out; r = setup_routing_entry(new, e, ue); if (r) goto out;