Skip to content
Snippets Groups Projects
Commit 8e2e2759 authored by Jonathan Gray's avatar Jonathan Gray Committed by Eric Engestrom
Browse files

egl/dri2: avoid undefined unlocks


unlocks were incorrectly added to paths using dri2_egl_display() as
well as those using dri2_egl_display_lock()

pthread_mutex_unlock() when unlocked is documented by posix as
being undefined behaviour.  On OpenBSD pthread_mutex_unlock() will call
abort(3) if this happens.

Fixes: f1efe037 ("egl/dri2: Add display lock")
Reviewed-by: default avatarRob Clark <robclark@freedesktop.org>
Part-of: <mesa/mesa!20712>
(cherry picked from commit 0594b3c1)
parent 16fc1641
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment