Skip to content
Commit 79c4bf0d authored by Emil Velikov's avatar Emil Velikov Committed by Juan A. Suarez Romero
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>
(cherry picked from commit c59d3aa4)
parent c14ed494
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment