mesa/src/loader
Konstantin Kharlamov eef0f7f1ea loader/dri3: temporarily work around a crash when front is NULL
Commit c65bde7b1e introduced a regression where under certain
circumstances `front` may be NULL, thus leading to a crash. It's not
currently known what exactly causes `front` to become NULL, nor we can
revert the offending commit, because there had been too many unrelated
changes that now depend on this commit.

So until someone comes up with a proper fix, let's add a workaround so
instead of crashing we just return from the function early.

This commit was tested with the bug `8982` and helps with the crash
with no other noticeable problems.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8982
Fixes: c65bde7b1e ("frontend/dri: inline __DRIdrawable in dri_drawable, make __DRIdrawable opaque")
Cc: mesa-stable
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23093>
(cherry picked from commit 275cf62e20)
2023-05-25 14:06:12 +01:00
..
loader.c loader: Add Xe KMD support 2023-04-12 10:41:21 +00:00
loader.h
loader_dri3_helper.c loader/dri3: temporarily work around a crash when front is NULL 2023-05-25 14:06:12 +01:00
loader_dri3_helper.h egl/loader: move crtc resource infrastructure as common helper 2023-05-25 14:06:10 +01:00
loader_dri_helper.c egl/loader: move crtc resource infrastructure as common helper 2023-05-25 14:06:10 +01:00
loader_dri_helper.h egl/loader: move crtc resource infrastructure as common helper 2023-05-25 14:06:10 +01:00
meson.build egl/loader: move crtc resource infrastructure as common helper 2023-05-25 14:06:10 +01:00
pci_id_driver_map.h loader: Add Xe KMD support 2023-04-12 10:41:21 +00:00