Skip to content
Commit 69b00796 authored by John Keeping's avatar John Keeping Committed by Mark Yao
Browse files

drm/rockchip: don't leak iommu mapping



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 archdata.mapping.

Signed-off-by: default avatarJohn Keeping <john@metanate.com>
parent aa1ac27f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment