From: Ashutosh Dixit Date: Fri, 28 Jun 2024 05:21:25 +0000 (-0700) Subject: drm/xe/oa: Destroy the stream_lock mutex X-Git-Tag: v6.11-rc1~141^2~13^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d46ecc958c9cb7b0f116aa52cf9296b6c71d784;p=thirdparty%2Fkernel%2Flinux.git drm/xe/oa: Destroy the stream_lock mutex The mutex allocated in xe_oa_stream_init() was never previously destroyed. Do so now. Fixes: e936f885f1e9 ("drm/xe/oa/uapi: Expose OA stream fd") Cc: Michal Wajdeczko Signed-off-by: Ashutosh Dixit Reviewed-by: Umesh Nerlige Ramappa Link: https://patchwork.freedesktop.org/patch/msgid/20240628052125.1847989-1-ashutosh.dixit@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c index 6cc3f02173418..4188516a7816d 100644 --- a/drivers/gpu/drm/xe/xe_oa.c +++ b/drivers/gpu/drm/xe/xe_oa.c @@ -824,6 +824,8 @@ static void xe_oa_stream_destroy(struct xe_oa_stream *stream) WRITE_ONCE(u->exclusive_stream, NULL); + mutex_destroy(&stream->stream_lock); + xe_oa_disable_metric_set(stream); xe_exec_queue_put(stream->k_exec_q);