]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/etnaviv: Fix missing mutex_destroy()
authorSui Jingfeng <sui.jingfeng@linux.dev>
Sun, 8 Sep 2024 12:11:06 +0000 (20:11 +0800)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 28 Oct 2024 15:30:15 +0000 (16:30 +0100)
commitdeadf1ef4adce096352489d1ef3721e43fa188bf
tree8bb46731a721888fa12e57e5d00a3c493403c61a
parentb09ccba779c8dd241c9254a4b5c062c51e6fa80d
drm/etnaviv: Fix missing mutex_destroy()

Currently, the calling of mutex_destroy() is ignored on error handling
code path. It is safe for now, since mutex_destroy() actually does
nothing in non-debug builds. But the mutex_destroy() is used to mark
the mutex uninitialized on debug builds, and any subsequent use of the
mutex is forbidden.

It also could lead to problems if mutex_destroy() gets extended, add
missing mutex_destroy() to eliminate potential concerns.

Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c
drivers/gpu/drm/etnaviv/etnaviv_drv.c
drivers/gpu/drm/etnaviv/etnaviv_gem.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_mmu.c