]> git.infradead.org Git - users/hch/misc.git/commitdiff
drm/xe/oa: Destroy the stream_lock mutex
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Fri, 28 Jun 2024 05:21:25 +0000 (22:21 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Mon, 1 Jul 2024 18:12:49 +0000 (11:12 -0700)
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 <michal.wajdeczko@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240628052125.1847989-1-ashutosh.dixit@intel.com
drivers/gpu/drm/xe/xe_oa.c

index 6cc3f02173418062682ac6d651497df582221e41..4188516a7816d76f5f310cced0a59caf0f25a377 100644 (file)
@@ -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);