projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7a230
)
iommu/omap: Return ERR_PTR in device_group call-back
author
Joerg Roedel
<jroedel@suse.de>
Wed, 28 Jun 2017 10:50:16 +0000
(12:50 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 28 Jun 2017 11:29:45 +0000
(13:29 +0200)
Make sure that the device_group callback returns an ERR_PTR
instead of NULL.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/omap-iommu.c
b/drivers/iommu/omap-iommu.c
index 95dfca36ccb993e90c21aadb8454272a1838b7b7..641e035cf86661b5da9239f8a60e28c252fa2f7e 100644
(file)
--- 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;