diff options
| author | Boyuan Zhang <boyuan.zhang@amd.com> | 2026-05-21 09:59:37 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 12:58:28 -0400 |
| commit | 3b4082fabc67c9780b06eb959e59dd92fa79c0f0 (patch) | |
| tree | acb54faef67ab26b920badfeb786b0262325e45a /lib/raid/raid6/git@git.tavy.me:linux-stable.git | |
| parent | 0c01c811be47e6b146552dd59bfedbea8f09b8f4 (diff) | |
drm/amdgpu/vcn4: avoid rereading IB param length
Reuse the parameter length returned by
vcn_v4_0_enc_find_ib_param() instead of rereading it from
the IB.
This avoids a potential TOCTOU issue if the IB contents
change between reads.
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: David Rosca <david.rosca@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit dbb02b4755f8c1f3773263f2d779872c1c0c073a)
Cc: stable@vger.kernel.org
Diffstat (limited to 'lib/raid/raid6/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
