diff options
author | Tom Rix <trix@redhat.com> | 2022-01-08 18:09:48 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-01-13 04:05:50 +0300 |
commit | 13462ba1815db5a96891293a9cfaa2451f7bd623 (patch) | |
tree | a5ed22167ccda1202bbbe7c7e3eacdc94ac7b611 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 7a2bccd1a27f0c8fc87e4ed56abd6ea9fa7314a6 (diff) | |
download | linux-13462ba1815db5a96891293a9cfaa2451f7bd623.tar.xz |
i3c: master: dw: check return of dw_i3c_master_get_free_pos()
Clang static analysis reports this problem
dw-i3c-master.c:799:9: warning: The result of the left shift is
undefined because the left operand is negative
COMMAND_PORT_DEV_INDEX(pos) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~
pos can be negative because dw_i3c_master_get_free_pos() can return an
error. So check for an error.
Fixes: 1dd728f5d4d4 ("i3c: master: Add driver for Synopsys DesignWare IP")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220108150948.3988790-1-trix@redhat.com
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions