Skip to content

Commit

Permalink
udl: handle EDID failure properly.
Browse files Browse the repository at this point in the history
Don't oops seems proper.

Cc: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
airlied committed Apr 12, 2013
1 parent cfb63ba commit 1baee58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/udl/udl_connector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1baee58

Please sign in to comment.