diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2015-02-05 16:11:38 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-02-09 23:56:36 +0900 |
commit | 936ce5cce66ce6f9b5138a1ac0fbf0c2d459a960 (patch) | |
tree | e4605fdc51c734ffe721f38842b84d495090aa93 /drivers/gpu | |
parent | d9ea62566dbda7afb63c790057f3243f51abf771 (diff) | |
download | op-kernel-dev-936ce5cce66ce6f9b5138a1ac0fbf0c2d459a960.zip op-kernel-dev-936ce5cce66ce6f9b5138a1ac0fbf0c2d459a960.tar.gz |
drm/exynos: fix NULL pointer reference
There is a case called disable_plane callback function even if
plane->crtc is NULL from exynos_drm_encoder_disable and it will cause
NULL pointer reference error.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c index 7e282e3..57de0bd 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c +++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c @@ -102,7 +102,7 @@ static void exynos_drm_encoder_disable(struct drm_encoder *encoder) /* all planes connected to this encoder should be also disabled. */ drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) { - if (plane->crtc == encoder->crtc) + if (plane->crtc && (plane->crtc == encoder->crtc)) plane->funcs->disable_plane(plane); } } |