Skip to content
Snippets Groups Projects
Commit c59d3aa4 authored by Emil Velikov's avatar Emil Velikov
Browse files

egl/wayland: bail out when drmGetMagic fails


Currently as the function fails, we pass uninitialized data to the
authentication function. Stop doing that and print an warning when
the function fails.

v2: Plug memory leak in error path (Eric)

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> (v1)
Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
parent 9575cd28
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