diff options
author | Dan Carpenter <[email protected]> | 2022-03-07 17:13:18 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-03-07 15:12:05 -0800 |
commit | 72f00505f2d2eced9789e98ca081f8229f03b2ed (patch) | |
tree | fb472a56c54fb7d3fe43cef3a07518107e81aee2 /drivers/fpga/fpga-bridge.c | |
parent | 57d29a2935c9aab0aaef6264bf6a58aad3859e7c (diff) |
ptp: ocp: off by in in ptp_ocp_tod_gnss_name()
The > ARRAY_SIZE() needs to be >= ARRAY_SIZE() to prevent an out of
bounds access.
Fixes: 9f492c4cb235 ("ptp: ocp: add TOD debug information")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Acked-by: Jonathan Lemon <[email protected]>
Link: https://lore.kernel.org/r/20220307141318.GA18867@kili
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions