Message ID | 1446849346-8242-2-git-send-email-keith.busch@intel.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On Fri, 6 Nov 2015, Keith Busch wrote: > From: Liu Jiang <jiang.liu@linux.intel.com> ... > Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> > Signed-off-by: Liu Jiang <jiang.liu@linux.intel.com> Hehehe. Let me read that from/sob chain: Liu wrote the patch and then handed it over to Jiang who sent it back to Liu and Liu sent it to Keith. Now what's missing is the SOB from Keith to make that chain perfect Other than that, this is the right solution. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index be9149f..01644d4 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -109,9 +109,11 @@ static int msi_domain_alloc(struct irq_domain *domain, unsigned int virq, if (irq_find_mapping(domain, hwirq) > 0) return -EEXIST; - ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); - if (ret < 0) - return ret; + if (domain->parent) { + ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); + if (ret < 0) + return ret; + } for (i = 0; i < nr_irqs; i++) { ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg);