[PATCH] drm/msm: Fix error handling crashes seen when VRAM allocation fails

2016-11-03 Thread Archit Taneja
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

[PATCH] drm/msm: Fix error handling crashes seen when VRAM allocation fails

2016-11-03 Thread Andy Gross
On Thu, Nov 03, 2016 at 05:36:18PM +0530, Archit Taneja wrote: > 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 pla