diff options
author | Chengchang Tang <tangchengchang@huawei.com> | 2024-07-10 16:37:03 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-07-11 13:25:12 +0300 |
commit | 36397b907355e2fdb5a25a02a7921a937fd8ef4c (patch) | |
tree | 279597e408f569fce9f23a0fcb34362b6f913e16 /tools/perf/scripts/python | |
parent | 24c6291346d98c7ece4f4bfeb5733bec1d6c7b4f (diff) | |
download | linux-36397b907355e2fdb5a25a02a7921a937fd8ef4c.tar.xz |
RDMA/hns: Fix undifined behavior caused by invalid max_sge
If max_sge has been set to 0, roundup_pow_of_two() in
set_srq_basic_param() may have undefined behavior.
Fixes: 9dd052474a26 ("RDMA/hns: Allocate one more recv SGE for HIP08")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240710133705.896445-7-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions