diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-08-06 17:43:24 +0100 |
---|---|---|
committer | Jerome Forissier <jerome.forissier@linaro.org> | 2025-08-18 14:08:57 +0200 |
commit | a75c8a4b883108edf19127fca3e6c6c590f9ba8c (patch) | |
tree | 5806f9fbdea8775d60334c460290183823bd48d1 /drivers/fpga/stratixv.c | |
parent | 4b2d64f3885a83fd001993785f74f70cc6045acc (diff) |
phy: marvell: Fix off by 1 limit checks
The limit checks in get_speed_string and get_type_string are off by 1 as
they do not account for the maximum index into an array that can be used
is 1 less than the number of elements in that array. Adjust the limit
checks to allow for this.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
Diffstat (limited to 'drivers/fpga/stratixv.c')
0 files changed, 0 insertions, 0 deletions