diff options
| author | Archit Taneja <[email protected]> | 2016-11-03 12:06:18 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2016-11-04 15:51:37 +0000 |
| commit | 16976085a114ae293c6fa7a463d74600ffcfeb4b (patch) | |
| tree | f8a12ca0f5f37825faa7306feaa28a47260546f2 /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | |
| parent | drm/msm/mdp5: 8x16 actually has 8 mixer stages (diff) | |
| download | kernel-16976085a114ae293c6fa7a463d74600ffcfeb4b.tar.gz kernel-16976085a114ae293c6fa7a463d74600ffcfeb4b.zip | |
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 <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Andy Gross <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
0 files changed, 0 insertions, 0 deletions
