summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2017-06-28 12:50:16 +0200
committerJoerg Roedel <jroedel@suse.de>2017-06-28 13:29:45 +0200
commit8faf5e5a12c511410de1590cf310ec331c5ec7b1 (patch)
tree03839038ed2724ab027ddeea1d741376cff283fb /drivers/iommu/omap-iommu.c
parentiommu: Return ERR_PTR() values from device_group call-backs (diff)
downloadlinux-8faf5e5a12c511410de1590cf310ec331c5ec7b1.tar.xz
linux-8faf5e5a12c511410de1590cf310ec331c5ec7b1.zip
iommu/omap: Return ERR_PTR in device_group call-back
Make sure that the device_group callback returns an ERR_PTR instead of NULL. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/omap-iommu.c')
-rw-r--r--drivers/iommu/omap-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 95dfca36ccb9..641e035cf866 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -1309,7 +1309,7 @@ static void omap_iommu_remove_device(struct device *dev)
static struct iommu_group *omap_iommu_device_group(struct device *dev)
{
struct omap_iommu_arch_data *arch_data = dev->archdata.iommu;
- struct iommu_group *group = NULL;
+ struct iommu_group *group = ERR_PTR(-EINVAL);
if (arch_data->iommu_dev)
group = arch_data->iommu_dev->group;