xserver/hw
Chenx Dust 7605833315 xwayland: fix segment fault in `xwl_glamor_gbm_init_main_dev`
Function `xwl_glamor_gbm_init_main_dev` does not check whether
`xwl_screen->default_feedback.main_dev` a.k.a. `main_dev` is a
valid pointer. This result in some special situation where main
linux-dmabuf device is not accessible, such as KWin nested desktop,
raising segment fault.

This commit add a null pointer check to prevent crashing.

Signed-off-by: Chenx Dust <chenx_dust@outlook.com>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1683
Fixes: d7f1909e - xwayland/glamor/gbm: make wl_drm optional
See-also: https://bugzilla.redhat.com/2284141
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1565>
2024-06-14 09:53:12 +00:00
..
kdrive os: unexport ddx callbacks 2024-05-08 09:37:35 +02:00
vfb os: unexport ddx callbacks 2024-05-08 09:37:35 +02:00
xfree86 modesetting/dri2: Remove always true ifdef 2024-05-22 05:34:30 +00:00
xnest os: unexport ddx callbacks 2024-05-08 09:37:35 +02:00
xquartz os: unexport ddx callbacks 2024-05-08 09:37:35 +02:00
xwayland xwayland: fix segment fault in `xwl_glamor_gbm_init_main_dev` 2024-06-14 09:53:12 +00:00
xwin os: unexport ddx callbacks 2024-05-08 09:37:35 +02:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00