mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 03:21:32 +00:00
drm/nouveau: Unset the EDID connector property when the EDID block goes away.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
0ed3165e55
commit
b8780e2ad2
@ -239,8 +239,12 @@ nouveau_connector_detect(struct drm_connector *connector)
|
||||
return connector_status_connected;
|
||||
}
|
||||
|
||||
kfree(nv_connector->edid);
|
||||
nv_connector->edid = NULL;
|
||||
/* Cleanup the previous EDID block. */
|
||||
if (nv_connector->edid) {
|
||||
drm_mode_connector_update_edid_property(connector, NULL);
|
||||
kfree(nv_connector->edid);
|
||||
nv_connector->edid = NULL;
|
||||
}
|
||||
|
||||
i2c = nouveau_connector_ddc_detect(connector, &nv_encoder);
|
||||
if (i2c) {
|
||||
|
Loading…
Reference in New Issue
Block a user