summaryrefslogtreecommitdiff
path: root/drivers/fpga/microchip-spi.c
diff options
context:
space:
mode:
authorJoshua Aberback <joshua.aberback@amd.com>2025-03-15 01:33:43 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-04-07 22:18:36 +0300
commit7b9f8698796f44ac2b551d485a8e5e9aaa761812 (patch)
tree923f5f881508aac4c1e19b2f8344209b28028946 /drivers/fpga/microchip-spi.c
parent40b85a9066f16b5d4abe3f9ea1750d46de0a4fd6 (diff)
downloadlinux-7b9f8698796f44ac2b551d485a8e5e9aaa761812.tar.xz
drm/amd/display: Use meaningful size for block_sequence array
[Why] This array was initially defined as size 50. There were array overflow issues so the size was increased to 100. To ensure such issues are avoided in the future, the size should be set based on the possible contents instead of an arbitrary value. [How] - upper bound, assume every update occurs on max number of pipes - define array sizes for function parameters, for static analysis Reviewed-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Joshua Aberback <joshua.aberback@amd.com> Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions