Skip to content

Commit

Permalink
Unlock mutex before return
Browse files Browse the repository at this point in the history
Always release mutex before return.

Signed-off-by: Jay Yang <[email protected]>
  • Loading branch information
MicroYY committed Jul 26, 2023
1 parent 8155a20 commit 3ac0f7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions va/va_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3ac0f7e

Please sign in to comment.