summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJonathan Marek <jonathan@marek.ca>2018-11-21 20:52:35 -0500
committerRob Clark <robdclark@gmail.com>2018-12-11 13:07:07 -0500
commitb2ccfdf1dde588d0e90d6d235b9ae557cbea5d4d (patch)
tree46da9601d3897ca40b72252c8b13f90cc07d9ac9 /drivers/gpu
parenta5cd7b55dfac41a45432de0bf261f8b92c43c3fa (diff)
downloadlinux-b2ccfdf1dde588d0e90d6d235b9ae557cbea5d4d.tar.bz2
drm/msm: set priv->kms to NULL before uninit
otherwise, priv->kms is non-NULL and msm_drm_uninit will cause a panic. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/msm/msm_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index cce5bc97b863..1a3b80d31726 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -524,6 +524,7 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)
*/
DRM_DEV_ERROR(dev, "failed to load kms\n");
ret = PTR_ERR(kms);
+ priv->kms = NULL;
goto err_msm_uninit;
}