Skip to content
Snippets Groups Projects
Commit 5eb316d7 authored by xufeng wang's avatar xufeng wang
Browse files

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: default avatarxufeng wang <550002860@gehealthcare.com>
parent 8762c3ba
No related branches found
No related tags found
Loading
Pipeline #1402776 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment