diff options
| author | Maciej Grochowski <Maciej.Grochowski@sony.com> | 2025-02-14 01:53:17 +0300 |
|---|---|---|
| committer | Jon Mason <jdmason@kudzu.us> | 2026-02-21 01:31:55 +0300 |
| commit | 186615f8855a0be4ee7d3fcd09a8ecc10e783b08 (patch) | |
| tree | 5b582376ee2a39f3c7dbc5303435d4a0a0de8f25 /tools/perf/tests/shell/script_python.sh | |
| parent | f39e7d0e7f0dc3f8886d957d268eb5c5b28ddf97 (diff) | |
| download | linux-186615f8855a0be4ee7d3fcd09a8ecc10e783b08.tar.xz | |
ntb: ntb_hw_switchtec: Fix shift-out-of-bounds for 0 mw lut
Number of MW LUTs depends on NTB configuration and can be set to zero,
in such scenario rounddown_pow_of_two will cause undefined behaviour and
should not be performed.
This patch ensures that rounddown_pow_of_two is called on valid value.
Signed-off-by: Maciej Grochowski <Maciej.Grochowski@sony.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'tools/perf/tests/shell/script_python.sh')
0 files changed, 0 insertions, 0 deletions
