[PATCH 2/2] drm/rockchip: don't leak iommu mapping

2016-04-11 Thread Mark yao
On 2016年04月05日 21:50, John Keeping wrote: > arm_iommu_attach_device() takes its own reference to the mapping we give > it. Since we do not keep a reference to the mapping ourselves, we must > release it before returning. > > Also fix the error path, which fails to release the mapping if it h

[PATCH 2/2] drm/rockchip: don't leak iommu mapping

2016-04-05 Thread John Keeping
arm_iommu_attach_device() takes its own reference to the mapping we give it. Since we do not keep a reference to the mapping ourselves, we must release it before returning. Also fix the error path, which fails to release the mapping if it has called arm_iommu_detach_device() since that clears arc