From 3ac0f7e70946c0404181500c95be5343b825ca4e Mon Sep 17 00:00:00 2001 From: Jay Yang Date: Wed, 26 Jul 2023 10:20:49 +0800 Subject: [PATCH] Unlock mutex before return Always release mutex before return. Signed-off-by: Jay Yang --- va/va_trace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/va/va_trace.c b/va/va_trace.c index 3cfe061a1..9ad36b405 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -6335,12 +6335,14 @@ void va_TraceExportSurfaceHandle( va_TraceMsg(trace_ctx, "\tflags = 0x%08x\n", flags); if (memType != VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2) { + DPY2TRACE_VIRCTX_EXIT(pva_trace); return; } VADRMPRIMESurfaceDescriptor *desc = (VADRMPRIMESurfaceDescriptor *)descriptor; if (!desc) { + DPY2TRACE_VIRCTX_EXIT(pva_trace); return; }