From e6abc613e2a78c01d1e79e4cd3be79e58d52eac2 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Tue, 16 Jan 2018 00:00:33 +0200 Subject: [PATCH] st/vdpau: release held lock in error path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Grazvydas Ignotas Reviewed-by: Christian König Cc: mesa-stable@lists.freedesktop.org --- src/gallium/state_trackers/vdpau/surface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c index c678eb70377..012d3036411 100644 --- a/src/gallium/state_trackers/vdpau/surface.c +++ b/src/gallium/state_trackers/vdpau/surface.c @@ -369,8 +369,10 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface, if (pformat == PIPE_FORMAT_YV12 && p_surf->video_buffer->buffer_format == PIPE_FORMAT_NV12) conversion = CONVERSION_YV12_TO_NV12; - else + else { + mtx_unlock(&p_surf->device->mutex); return VDP_STATUS_NO_IMPLEMENTATION; + } } sampler_views = p_surf->video_buffer->get_sampler_view_planes(p_surf->video_buffer); -- 2.30.2