Re: [PATCH] drm/amd/display: Fix unsigned comparison with less than zero

2024-07-01 Thread Alex Deucher
Applied. Thanks! On Sun, Jun 30, 2024 at 11:10 PM Jiapeng Chong wrote: > > The return value from the call to dml21_find_dc_pipes_for_plane() is int. > However, the return value is being assigned to an unsigned int variable > 'num_pipes', the condition if(num_pipes <= 0) is not rigorous enough, >

[PATCH] drm/amd/display: Fix unsigned comparison with less than zero

2024-07-01 Thread Jiapeng Chong
The return value from the call to dml21_find_dc_pipes_for_plane() is int. However, the return value is being assigned to an unsigned int variable 'num_pipes', the condition if(num_pipes <= 0) is not rigorous enough, so making 'num_pipes' an int. ./drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wr