aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorStefan Wahren <[email protected]>2024-09-30 11:30:54 +0200
committerMark Brown <[email protected]>2024-09-30 22:31:39 +0100
commitfa8ecda9876ac1e7b29257aa82af1fd0695496e2 (patch)
treeb0f034f408f8bacf0b276aebdb76fc7ce3b7ff54 /tools/perf/util/scripting-engines/trace-event-python.c
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
spi: spi-fsl-lpspi: Adjust type of scldiv
The target value of scldiv is just a byte, but its calculation in fsl_lpspi_set_bitrate could be negative. So use an adequate type to store the result and avoid overflows. After that this needs range check adjustments, but this should make the code less opaque. Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions