diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/msm_iommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c index 1a584e077c61..d1733f672f16 100644 --- a/drivers/iommu/msm_iommu.c +++ b/drivers/iommu/msm_iommu.c | |||
@@ -543,6 +543,13 @@ static int msm_iommu_unmap(struct iommu_domain *domain, unsigned long va, | |||
543 | } | 543 | } |
544 | 544 | ||
545 | ret = __flush_iotlb(domain); | 545 | ret = __flush_iotlb(domain); |
546 | |||
547 | /* | ||
548 | * the IOMMU API requires us to return the order of the unmapped | ||
549 | * page (on success). | ||
550 | */ | ||
551 | if (!ret) | ||
552 | ret = order; | ||
546 | fail: | 553 | fail: |
547 | spin_unlock_irqrestore(&msm_iommu_lock, flags); | 554 | spin_unlock_irqrestore(&msm_iommu_lock, flags); |
548 | return ret; | 555 | return ret; |