Commit 35904d6e authored by Dave Airlie's avatar Dave Airlie

Merge branch 'drm/du/fixes' of git://linuxtv.org/pinchartl/media into 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
parents 771c577c 643ca198
...@@ -88,6 +88,9 @@ static int rcar_lvds_connector_atomic_check(struct drm_connector *connector, ...@@ -88,6 +88,9 @@ static int rcar_lvds_connector_atomic_check(struct drm_connector *connector,
const struct drm_display_mode *panel_mode; const struct drm_display_mode *panel_mode;
struct drm_crtc_state *crtc_state; struct drm_crtc_state *crtc_state;
if (!state->crtc)
return 0;
if (list_empty(&connector->modes)) { if (list_empty(&connector->modes)) {
dev_dbg(lvds->dev, "connector: empty modes list\n"); dev_dbg(lvds->dev, "connector: empty modes list\n");
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment