275cf62e20
Commitc65bde7b1eintroduced 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>