summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-05-22 02:54:50 +0200
committerDave Airlie <airlied@redhat.com>2018-05-22 02:54:50 +0200
commit35904d6e9683e8d0ea742d6889d93bea2e79888a (patch)
tree6bb60d39d7e65973ba69af747948a8df0205b96c /drivers
parentLinux 4.17-rc6 (diff)
parentdrm: rcar-du: lvds: Fix crash in .atomic_check when disabling connector (diff)
downloadlinux-35904d6e9683e8d0ea742d6889d93bea2e79888a.tar.xz
linux-35904d6e9683e8d0ea742d6889d93bea2e79888a.zip
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_lvds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c
index 3d2d3bbd1342..155ad840f3c5 100644
--- a/drivers/gpu/drm/rcar-du/rcar_lvds.c
+++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c
@@ -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;