projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/amdgpu/dce11: disable hpd on local panels
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
iommu
/
dma-iommu.c
diff --git
a/drivers/iommu/dma-iommu.c
b/drivers/iommu/dma-iommu.c
index 58f2fe687a24ddd29ac6d786862eefc33098d795..347a3c17f73a6ff9ed5acde668c9fb5df1b3a5cb 100644
(file)
--- a/
drivers/iommu/dma-iommu.c
+++ b/
drivers/iommu/dma-iommu.c
@@
-68,7
+68,8
@@
void iommu_put_dma_cookie(struct iommu_domain *domain)
if (!iovad)
return;
- put_iova_domain(iovad);
+ if (iovad->granule)
+ put_iova_domain(iovad);
kfree(iovad);
domain->iova_cookie = NULL;
}