diff options
author | 2024-07-10 21:37:03 +0800 | |
---|---|---|
committer | 2024-07-11 13:25:12 +0300 | |
commit | 36397b907355e2fdb5a25a02a7921a937fd8ef4c (patch) | |
tree | 279597e408f569fce9f23a0fcb34362b6f913e16 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | RDMA/hns: Fix shift-out-bounds when max_inline_data is 0 (diff) | |
download | wireguard-linux-36397b907355e2fdb5a25a02a7921a937fd8ef4c.tar.xz wireguard-linux-36397b907355e2fdb5a25a02a7921a937fd8ef4c.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions