weston/libweston/backend-drm
Ray Smith 930f768bdb backend-drm: Fix double-free of pending state in error path
drm_pending_state_apply_atomic is supposed to leave pending_state
untouched if called as a test-only and that test fails, as per the docs
for drm_pending_state_test. If it gets as far as doing the atomic test
and it fails, it doesn't free pending_state. However if it fails to even
compile the state for the atomic test (for example, if a particular
property is not implemented in the driver for a particular plane), it
frees pending_state. In this case, drm_output_propose_state will free
the contained drm_output_state again, typically leading to a segfault.

Treat failing to compile the state for the atomic test in the same way
as successfully running the atomic test but it failing.

Signed-off-by: Ray Smith <rsmith@brightsign.biz>
2025-10-09 13:39:23 +01:00
..
drm-gbm.c vulkan-renderer: fix gbm_bo destroy in drm backend 2025-09-22 10:12:33 +02:00
drm-internal.h libweston: Get framebuffer from dma buffer in drm backend 2025-10-06 14:06:30 +02:00
drm-kms-enums.h drm-backend: Add Variable Refresh Rate modes 2025-02-21 06:49:42 +00:00
drm-virtual.c backend-drm: assert that there's a valid output state before repaint 2025-09-08 08:37:28 +00:00
drm.c libweston: Get framebuffer from dma buffer in drm backend 2025-10-06 14:06:30 +02:00
fb.c libweston: Get framebuffer from dma buffer in drm backend 2025-10-06 14:06:30 +02:00
kms-color.c backend-drm: set connector property "Colorspace" 2024-05-06 10:39:42 +00:00
kms.c backend-drm: Fix double-free of pending state in error path 2025-10-09 13:39:23 +01:00
libbacklight.c libweston,tools: Include libgen.h for basename signature 2023-12-18 21:13:52 +00:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build libweston: Vulkan renderer 2025-05-23 20:36:05 +01:00
modes.c backend-drm: Add some further debug message for hot-plug events 2025-09-25 14:07:48 +01:00
state-helpers.c drm: Replace dead code with an assert in plane transform check paths 2025-09-05 13:33:22 -05:00
state-propose.c color: introduce output color effects 2025-09-18 12:32:13 -03:00
vaapi-recorder.c drm/vaapi: Fix pointer-size confusion 2021-08-03 11:13:23 +00:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00