mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-17 11:08:08 +02:00
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> |
||
|---|---|---|
| .. | ||
| drm-gbm.c | ||
| drm-internal.h | ||
| drm-kms-enums.h | ||
| drm-virtual.c | ||
| drm.c | ||
| fb.c | ||
| kms-color.c | ||
| kms.c | ||
| libbacklight.c | ||
| libbacklight.h | ||
| meson.build | ||
| modes.c | ||
| state-helpers.c | ||
| state-propose.c | ||
| vaapi-recorder.c | ||
| vaapi-recorder.h | ||