summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorStanley Chu <yschu@nuvoton.com>2025-03-10 05:33:04 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2025-03-18 01:46:06 +0300
commitd6cb667b8e15bac47f19aec4bd81f3916b2ca9f5 (patch)
treeb8dccad0b5530a2e5a92f3b8dc690c450a6fcdc8 /tools/perf/scripts/python/gecko.py
parent2a785307e41b5c621228e3a7ec3949af546a3e69 (diff)
downloadlinux-d6cb667b8e15bac47f19aec4bd81f3916b2ca9f5.tar.xz
i3c: master: svc: Fix i3c_master_get_free_addr return check
The return value of i3c_master_get_free_addr is assigned to a variable with wrong type, so it can't be negative. Use a signed integer for the return value. If the value is negative, break the process and propagate the error code. This commit also fixes the uninitialized symbol 'dyn_addr', reported by Smatch static checker. Fixes: 4008a74e0f9b ("i3c: master: svc: Fix npcm845 FIFO empty issue") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/all/029e5ac0-5444-4a8e-bca4-cec55950d2b9@stanley.mountain/ Signed-off-by: Stanley Chu <yschu@nuvoton.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20250310023304.2335792-1-yschu@nuvoton.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions