Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/msm
Archit Taneja 16976085a1 drm/msm: Fix error handling crashes seen when VRAM allocation fails
If VRAM allocation fails, the error handling path crashes in
msm_drm_uninit(). The following changes are made to fix this:

msm_gem_shrinker_cleanup() is fixed to unregister the shrinker only
if it was init-ed in the first place.

Before calling kms->funcs->destroy(), we check if kms->funcs is also
non-NULL. This is needed for MDP5, since during msm_drm_int(), priv->kms
becomes non-NULL early, but msm_kms_init() is called on it only later
in mdp5_kms_init().

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
2016-11-04 11:51:37 -04:00
..
2016-09-15 17:39:49 -04:00
2016-07-16 10:09:06 -04:00
2016-05-08 10:22:15 -04:00
2016-05-08 10:22:15 -04:00
2016-09-28 12:08:49 +10:00
2016-08-07 23:38:48 -04:00
2016-08-07 23:38:48 -04:00
2013-08-24 14:57:18 -04:00
2014-01-09 14:44:06 -05:00