mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
udl: handle EDID failure properly.
Don't oops seems proper. Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
cfb63bafdb
commit
1baee58638
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ static int udl_get_modes(struct drm_connector *connector)
|
|||
int ret;
|
||||
|
||||
edid = (struct edid *)udl_get_edid(udl);
|
||||
if (!edid) {
|
||||
drm_mode_connector_update_edid_property(connector, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* We only read the main block, but if the monitor reports extension
|
||||
|
|
Loading…
Reference in a new issue