diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-09-17 22:22:29 -0700 |
---|---|---|
committer | Yinghai Lu <yinghai@kernel.org> | 2012-09-17 22:22:29 -0700 |
commit | d1b2bcf01c6437578ed8b48a70f539920e352c57 (patch) | |
tree | 88bb1ae21b91f66b1c72ff345fce10b0ce7a05c8 | |
parent | bc31d71b7b9f35b895aee9401b68ef88d032149d (diff) | |
download | linux-yinghai-d1b2bcf01c6437578ed8b48a70f539920e352c57.tar.gz |
iommu, irq: alloc irq_desc for dmar_msi with local node
Also fix the return value checking problem.
create_irq() will return -1 when fail to allocate.
create_irq_nr() will return 0 when fail to allocate.
here only check !irq, so need to change it to create_irq_nr.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
-rw-r--r-- | drivers/iommu/dmar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index 86e2f4a62b9a9..cf2a39a76e312 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c @@ -1261,7 +1261,7 @@ int dmar_set_interrupt(struct intel_iommu *iommu) if (iommu->irq) return 0; - irq = create_irq(); + irq = create_irq_nr(0, iommu->node); if (!irq) { pr_err("IOMMU: no free vectors\n"); return -EINVAL; |