summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMaciej Grochowski <Maciej.Grochowski@sony.com>2025-02-13 14:53:17 -0800
committerJon Mason <jdmason@kudzu.us>2026-02-20 17:31:55 -0500
commit186615f8855a0be4ee7d3fcd09a8ecc10e783b08 (patch)
tree5b582376ee2a39f3c7dbc5303435d4a0a0de8f25 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parentf39e7d0e7f0dc3f8886d957d268eb5c5b28ddf97 (diff)
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/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions