weston/libweston/backend-drm
xufeng wang 5eb316d77c libweston: fix crash when getting connector's property failed
When weston tries to update drm head info, if the connector is disconnected, it cannot get the connector's property.

If get connector's property failed, drm_connector_assign_connector_info returns -1 and head->connector->conn, head->connector->props_drm remain to be nullptr, but they are used in update_head_from_connector, so the crash occurs.

So just return ret when drm_connector_assign_connector_info returns -1, and head->connector, head->connector will not be used later.

Signed-off-by: xufeng wang <550002860@gehealthcare.com>
2025-04-11 15:58:22 +08:00
..
drm-gbm.c drm: Remove workaround for ancient Mesa GBM issue 2025-01-23 11:57:42 +00:00
drm-internal.h backend-drm: Explicitly arm/disarm the page flip timer counter 2025-03-06 16:09:42 +02:00
drm-kms-enums.h drm-backend: Add Variable Refresh Rate modes 2025-02-21 06:49:42 +00:00
drm-virtual.c libweston/drm-virtual: Point output base backend the DRM backend 2024-08-27 17:32:30 +03:00
drm.c libweston: fix crash when getting connector's property failed 2025-04-11 15:58:22 +08:00
fb.c backend-drm: Clear out the the fb handles 2025-02-07 23:44:18 +02:00
kms-color.c backend-drm: set connector property "Colorspace" 2024-05-06 10:39:42 +00:00
kms.c backend-drm: Fix count page flips on invalid outputs 2025-04-02 13:09:45 +00: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 build: make libdisplay-info mandatory 2025-03-06 18:34:57 +00:00
modes.c meson: require libdisplay-info >= 0.2.0 2025-03-06 18:34:57 +00:00
state-helpers.c backend-drm: Set default plane color space and range hints 2025-02-04 12:36:12 +00:00
state-propose.c backend-drm: make sure outputs are enabled during plane assignment 2025-04-02 18:02:45 +00: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