Skip to content

Commit

Permalink
Merge branch 'drm/du/fixes' of git://linuxtv.org/pinchartl/media into…
Browse files Browse the repository at this point in the history
… drm-fixes

Single regression fix for rcar-du lvds

* 'drm/du/fixes' of git://linuxtv.org/pinchartl/media:
  drm: rcar-du: lvds: Fix crash in .atomic_check when disabling connector
  • Loading branch information
airlied committed May 22, 2018
2 parents 771c577 + 643ca19 commit 35904d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/rcar-du/rcar_lvds.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ static int rcar_lvds_connector_atomic_check(struct drm_connector *connector,
const struct drm_display_mode *panel_mode;
struct drm_crtc_state *crtc_state;

if (!state->crtc)
return 0;

if (list_empty(&connector->modes)) {
dev_dbg(lvds->dev, "connector: empty modes list\n");
return -EINVAL;
Expand Down

0 comments on commit 35904d6

Please sign in to comment.