]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: fix MMU context leak on GPU reset
authorLucas Stach <l.stach@pengutronix.de>
Fri, 20 Aug 2021 20:18:28 +0000 (22:18 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 16 Sep 2021 08:35:29 +0000 (10:35 +0200)
commitf978a5302f5566480c58ffae64a16d34456801bd
treeb0740eaddd1e974530dc4a4b9acae3942c5adb34
parent725cbc7884c37f3b4f1777bc1aea6432cded8ca5
drm/etnaviv: fix MMU context leak on GPU reset

After a reset the GPU is no longer using the MMU context and may be
restarted with a different context. While the mmu_state proeprly was
cleared, the context wasn't unreferenced, leading to a memory leak.

Cc: stable@vger.kernel.org # 5.4
Reported-by: Michael Walle <michael@walle.cc>
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_gpu.c