aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorJessica Zhang <[email protected]>2022-05-05 21:40:51 +0000
committerDmitry Baryshkov <[email protected]>2022-05-06 23:10:35 +0000
commitca75f6f7c6f89365e40f10f641b15981b1f07c31 (patch)
treed6bf407201711bed675d93da4e0e51326de7a0ae /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detected (diff)
downloadkernel-ca75f6f7c6f89365e40f10f641b15981b1f07c31.tar.gz
kernel-ca75f6f7c6f89365e40f10f641b15981b1f07c31.zip
drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detected
There is a possibility for mdp5_get_global_state to return -EDEADLK when acquiring the modeset lock, but currently global_state in mdp5_mixer_release doesn't check for if an error is returned. To avoid a NULL dereference error, let's have mdp5_mixer_release check if an error is returned and propagate that error. Reported-by: Tomeu Vizoso <[email protected]> Signed-off-by: Jessica Zhang <[email protected]> Fixes: 7907a0d77cb4 ("drm/msm/mdp5: Use the new private_obj state") Reviewed-by: Rob Clark <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/485181/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions