Fix crash in drm_mode_connector_update_edid_property
We need to initialize the edid_blob_ptr to NULL when we init a connector, otherwise drm_mode_connector_update_edid_property may think there's a valid EDID lying around and try to destroy it, causing a crash.main
parent
cf1964f971
commit
52183fb05b
|
@ -357,6 +357,7 @@ void drm_connector_init(struct drm_device *dev,
|
||||||
INIT_LIST_HEAD(&connector->user_modes);
|
INIT_LIST_HEAD(&connector->user_modes);
|
||||||
INIT_LIST_HEAD(&connector->probed_modes);
|
INIT_LIST_HEAD(&connector->probed_modes);
|
||||||
INIT_LIST_HEAD(&connector->modes);
|
INIT_LIST_HEAD(&connector->modes);
|
||||||
|
connector->edid_blob_ptr = NULL;
|
||||||
/* randr_connector? */
|
/* randr_connector? */
|
||||||
/* connector_set_monitor(connector)? */
|
/* connector_set_monitor(connector)? */
|
||||||
/* check for connector_ignored(connector)? */
|
/* check for connector_ignored(connector)? */
|
||||||
|
|
Loading…
Reference in New Issue