>From ac8d07e4bb93ac25582cf117735b0896347b7df7 Mon Sep 17 00:00:00 2001 From: Alexander Gordeev Date: Wed, 9 May 2012 10:45:52 -0400 Subject: [PATCH 2/3] x86: intremap: Fix get_irte() NULL-pointer assignment Signed-off-by: Alexander Gordeev --- drivers/iommu/intr_remapping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/iommu/intr_remapping.c b/drivers/iommu/intr_remapping.c index 6777ca0..adb0818 100644 --- a/drivers/iommu/intr_remapping.c +++ b/drivers/iommu/intr_remapping.c @@ -68,7 +68,7 @@ int get_irte(int irq, struct irte *entry) unsigned long flags; int index; - if (!entry || !irq_iommu) + if (!entry || !irq_iommu || !irq_iommu->iommu) return -1; raw_spin_lock_irqsave(&irq_2_ir_lock, flags); -- 1.7.6.5