diff options
author | Ashutosh Dixit <[email protected]> | 2024-06-27 22:21:25 -0700 |
---|---|---|
committer | Ashutosh Dixit <[email protected]> | 2024-07-01 11:12:49 -0700 |
commit | 2d46ecc958c9cb7b0f116aa52cf9296b6c71d784 (patch) | |
tree | bb8562c55be611facc9cc5dee83ebc14856b214a | |
parent | 7dc10eff223b0e9fed5d48159820556a576be592 (diff) |
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 <[email protected]>
Signed-off-by: Ashutosh Dixit <[email protected]>
Reviewed-by: Umesh Nerlige Ramappa <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/gpu/drm/xe/xe_oa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c index 6cc3f0217341..4188516a7816 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); |