Re: [PATCH] drm/amd/display: fix exit from amdgpu_dm_atomic_check() abruptly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2021-11-08 08:56, Shirish S wrote:
> make action upon failure in "drm_atomic_add_affected_connectors()"
> consistent with the rest of failures in amdgpu_dm_atomic_check().
> 
> Signed-off-by: Shirish S <shirish.s@xxxxxxx>

Reviewed-by: Harry Wentland <harry.wentland@xxxxxxx>

Harry

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 1e26d9be8993..a27c246143ac 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -10801,7 +10801,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
>  
>  		ret = drm_atomic_add_affected_connectors(state, crtc);
>  		if (ret)
> -			return ret;
> +			goto fail;
>  
>  		ret = drm_atomic_add_affected_planes(state, crtc);
>  		if (ret)
> 




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux