Re: [PATCH] drm/amd/display: Implement bounds check for stream encoder creation in DCN401

2024-07-21 Thread Chung, ChiaHsuan (Tom)
Reviewed-by: Tom Chung On 7/20/2024 12:12 AM, Srinivasan Shanmugam wrote: 'stream_enc_regs' array is an array of dcn10_stream_enc_registers structures. The array is initialized with four elements, corresponding to the four calls to stream_enc_regs() in the array initializer. This means that val

[PATCH] drm/amd/display: Implement bounds check for stream encoder creation in DCN401

2024-07-19 Thread Srinivasan Shanmugam
'stream_enc_regs' array is an array of dcn10_stream_enc_registers structures. The array is initialized with four elements, corresponding to the four calls to stream_enc_regs() in the array initializer. This means that valid indices for this array are 0, 1, 2, and 3. The error message 'stream_enc_r

[PATCH] drm/amd/display: Implement bounds check for stream encoder creation

2024-07-13 Thread José Expósito
The same pattern fixed by commit 15dba12c5659 ("drm/amd/display: Implement bounds check for stream encoder creation in DCN301") was used in other create_stream_encoder() functions. Apply the same fix. Signed-off-by: José Expósito --- drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.

RE: [PATCH] drm/amd/display: Implement bounds check for stream encoder creation in DCN301

2024-02-05 Thread Li, Roman
[Public] Inline. > -Original Message- > From: SHANMUGAM, SRINIVASAN > Sent: Sunday, February 4, 2024 9:35 PM > To: Siqueira, Rodrigo ; Pillai, Aurabindo > > Cc: amd-gfx@lists.freedesktop.org; SHANMUGAM, SRINIVASAN > ; Li, Roman > Subject: [PATCH] drm/amd/d

[PATCH] drm/amd/display: Implement bounds check for stream encoder creation in DCN301

2024-02-04 Thread Srinivasan Shanmugam
'stream_enc_regs' array is an array of dcn10_stream_enc_registers structures. The array is initialized with four elements, corresponding to the four calls to stream_enc_regs() in the array initializer. This means that valid indices for this array are 0, 1, 2, and 3. The error message 'stream_enc_r