diff options
| author | 2026-02-21 01:20:31 +0800 | |
|---|---|---|
| committer | 2026-04-02 16:29:19 +0200 | |
| commit | 84664e43ef87413f81b779b6433f43e14bc558cb (patch) | |
| tree | d0aa643574e9c691e55002db71e4ca58cec80e1d /tools/perf/scripts/python/stackcollapse.py | |
| parent | misc: amd-sbi: Add device tree mapping for AMD SBRMI devices (diff) | |
misc: ti_fpc202: fix off-by-one error in port ID bounds check
FPC202_NUM_PORTS is 2, valid port IDs should be 0 and 1. A port_id of 2
would incorrectly pass the check, potentially causing out-of-bounds
access to the port-related arrays.
Found by code review, compile pass.
Fixes: 1e5c9b1efa1c ("misc: add FPC202 dual port controller driver")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://patch.msgid.link/20260221-fp202-v1-1-4d28cb8b28fb@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
