Skip to content

vulkan/wsi/wayland: Fix use after free

Derek Foreman requested to merge derekf/mesa:fix_uaf into main

vulkan/wsi/wayland: Fix use after free

In 7eaceb03 I called pthread_mutex_unlock() with a member of a freed structure.

We can unlock as soon as this element is removed from the list it was in, so just move the unlock to before the free.

Fixes 7eaceb03

Signed-off-by: Derek Foreman derek.foreman@collabora.com

Merge request reports

Loading