From: Chad Versace Date: Wed, 28 Sep 2016 06:06:37 +0000 (-0700) Subject: egl: Fix missing unlock in eglGetSyncAttribKHR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17084b6f9340f798111e53e08f5d35c7630cee48;p=mesa.git 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 Reviewed-by: Emil Velikov --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 1c62a8049e4..44fc0b83fad 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);