mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-22 23:39:23 +07:00
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>
This commit is contained in:
parent
a5cd7b55df
commit
b2ccfdf1dd
@ -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");
|
DRM_DEV_ERROR(dev, "failed to load kms\n");
|
||||||
ret = PTR_ERR(kms);
|
ret = PTR_ERR(kms);
|
||||||
|
priv->kms = NULL;
|
||||||
goto err_msm_uninit;
|
goto err_msm_uninit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user