-
- Downloads
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>
parent
8762c3ba
No related branches found
No related tags found
Pipeline #1402776 passed
Stage: Pre Base container
Stage: Base container
Stage: Full build and test
Stage: No-GL build and test
Stage: Other builds
Stage: pages
Stage: deploy
Loading
Please register or sign in to comment