glx: drop obsolete _XUnlock_Mutex in __glXInitialize error path
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 16 Mar 2014 02:56:18 +0000 (02:56 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 9 Apr 2014 21:12:35 +0000 (22:12 +0100)
commitf9832f960fa8edcee0eb6866698cc5f9f25bd8f9
tree148703b3b30925e93c48be19fd18753e4b277e36
parent6afd7be1326986d097efc3b0fed0438106e2fba2
glx: drop obsolete _XUnlock_Mutex in __glXInitialize error path

With commit 1f1928db001(glx: Drop _Xglobal_lock while we create and
initialize glx display) we've split the big _Xglobal_lock handling in
a more fine grained manner.

Unfortunatelly we forgot to drop the unlock_mutex on the error paths,
leading to undefined behaviour as the mutex is already unlocked.

Cc: Kristian Høgsberg <krh@bitplanet.net>
Cc: "9.2 10.0 10.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/glxext.c