[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1490962248-12602-4-git-send-email-joro@8bytes.org>
Date: Fri, 31 Mar 2017 14:10:46 +0200
From: Joerg Roedel <joro@...tes.org>
To: Suman Anna <s-anna@...com>, iommu@...ts.linux-foundation.org
Cc: linux-kernel@...r.kernel.org, Joerg Roedel <jroedel@...e.de>
Subject: [PATCH 3/5] iommu/omap: Set dev->archdata.iommu = NULL in omap_iommu_remove_device
From: Joerg Roedel <jroedel@...e.de>
Don't leave a stale pointer in case the device continues to
exist for some more time.
Signed-off-by: Joerg Roedel <jroedel@...e.de>
---
drivers/iommu/omap-iommu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 45df5c8..04b3718 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -1252,6 +1252,7 @@ static void omap_iommu_remove_device(struct device *dev)
if (!dev->of_node || !arch_data)
return;
+ dev->archdata.iommu = NULL;
kfree(arch_data);
}
--
1.9.1
Powered by blists - more mailing lists