aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorChengchang Tang <tangchengchang@huawei.com>2024-07-10 21:37:03 +0800
committerLeon Romanovsky <leon@kernel.org>2024-07-11 13:25:12 +0300
commit36397b907355e2fdb5a25a02a7921a937fd8ef4c (patch)
tree279597e408f569fce9f23a0fcb34362b6f913e16 /scripts/gcc-plugins/gcc-common.h
parent24c6291346d98c7ece4f4bfeb5733bec1d6c7b4f (diff)
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 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions