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

2024-02-06 Thread Li, Roman
[Public] Inline. > -Original Message- > From: SHANMUGAM, SRINIVASAN > Sent: Monday, February 5, 2024 10:47 PM > To: Li, Roman ; Siqueira, Rodrigo > ; Pillai, Aurabindo > Cc: amd-gfx@lists.freedesktop.org; SHANMUGAM, SRINIVASAN > > Subject: [PATCH v2] drm/amd/d

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

2024-02-05 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