mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue