drm/etnaviv: add missing MMU context put when reaping MMU mapping
authorLucas Stach <l.stach@pengutronix.de>
Fri, 20 Aug 2021 20:18:30 +0000 (22:18 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 16 Sep 2021 08:35:37 +0000 (10:35 +0200)
commitf2faea8b64125852fa9acc6771c07fc0311a039b
treedae2015b2a6cc394cae198e1b5df29b7988616f8
parentd6408538f091fb22d47f792d4efa58143d56c3fb
drm/etnaviv: add missing MMU context put when reaping MMU mapping

When we forcefully evict a mapping from the the address space and thus the
MMU context, the MMU context is leaked, as the mapping no longer points to
it, so it doesn't get freed when the GEM object is destroyed. Add the
mssing context put to fix the leak.

Cc: stable@vger.kernel.org # 5.4
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Michael Walle <michael@walle.cc>
Tested-by: Marek Vasut <marex@denx.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_mmu.c