aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorMichael J. Ruhl <[email protected]>2025-06-27 14:35:11 +0000
committerAndi Shyti <[email protected]>2025-06-30 17:57:08 +0000
commit3d30048958e0d43425f6d4e76565e6249fa71050 (patch)
treed61dee69d5ed1961945b4cca4028e61d654f19a6 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentLinux 6.16-rc4 (diff)
downloadkernel-3d30048958e0d43425f6d4e76565e6249fa71050.tar.gz
kernel-3d30048958e0d43425f6d4e76565e6249fa71050.zip
i2c/designware: Fix an initialization issue
The i2c_dw_xfer_init() function requires msgs and msg_write_idx from the dev context to be initialized. amd_i2c_dw_xfer_quirk() inits msgs and msgs_num, but not msg_write_idx. This could allow an out of bounds access (of msgs). Initialize msg_write_idx before calling i2c_dw_xfer_init(). Reviewed-by: Andy Shevchenko <[email protected]> Fixes: 17631e8ca2d3 ("i2c: designware: Add driver support for AMD NAVI GPU") Cc: <[email protected]> # v5.13+ Signed-off-by: Michael J. Ruhl <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions