]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: check for reaped mapping in etnaviv_iommu_unmap_gem
authorLucas Stach <l.stach@pengutronix.de>
Wed, 23 Mar 2022 16:08:22 +0000 (17:08 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 6 Apr 2022 08:00:51 +0000 (10:00 +0200)
commit8abfecf257e17d2b8dc53cd1ad1e56cb5d3fde87
tree37f2bcf8590839e47b8d588d6e7f0cd4030741bc
parent8240d0a52581b69b665312c50df5f36af06ef06e
drm/etnaviv: check for reaped mapping in etnaviv_iommu_unmap_gem

When the mapping is already reaped the unmap must be a no-op, as we
would otherwise try to remove the mapping twice, corrupting the involved
data structures.

Cc: stable@vger.kernel.org # 5.4
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Guido Günther <agx@sigxcpu.org>
Acked-by: Guido Günther <agx@sigxcpu.org>
drivers/gpu/drm/etnaviv/etnaviv_mmu.c