egl: Fix missing unlock in eglGetSyncAttribKHR
authorChad Versace <chadversary@chromium.org>
Wed, 28 Sep 2016 06:06:37 +0000 (23:06 -0700)
committerChad Versace <chadversary@chromium.org>
Tue, 4 Oct 2016 21:11:22 +0000 (14:11 -0700)
commit17084b6f9340f798111e53e08f5d35c7630cee48
treec4b0d03efb2e9426dca19021177969545da3820a
parentd2112fc8d9ab1530c3265c5faac20bf906d1ddc8
egl: Fix missing unlock in eglGetSyncAttribKHR

On the error path, eglGetSyncAttribKHR neglected to unlock the
EGLDisplay before returning.

Fixes deadlock in dEQP-EGL.functional.fence_sync.invalid.get_invalid_value.

Cc: mesa-stable@lists.freedesktop.org
Cc: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/main/eglapi.c