summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglapi.c
diff options
context:
space:
mode:
authorChad Versace <chadversary@chromium.org>2016-09-27 23:06:37 -0700
committerChad Versace <chadversary@chromium.org>2016-10-04 14:11:22 -0700
commit17084b6f9340f798111e53e08f5d35c7630cee48 (patch)
treec4b0d03efb2e9426dca19021177969545da3820a /src/egl/main/eglapi.c
parentd2112fc8d9ab1530c3265c5faac20bf906d1ddc8 (diff)
downloadexternal_mesa3d-17084b6f9340f798111e53e08f5d35c7630cee48.zip
external_mesa3d-17084b6f9340f798111e53e08f5d35c7630cee48.tar.gz
external_mesa3d-17084b6f9340f798111e53e08f5d35c7630cee48.tar.bz2
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>
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r--src/egl/main/eglapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 1c62a80..44fc0b8 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -1602,7 +1602,7 @@ eglGetSyncAttribKHR(EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLint *valu
EGLBoolean result;
if (!value)
- RETURN_EGL_ERROR(NULL, EGL_BAD_PARAMETER, EGL_FALSE);
+ RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE);
attrib = *value;
result = _eglGetSyncAttribCommon(disp, s, attribute, &attrib);