diff options
author | Chengchang Tang <[email protected]> | 2024-07-10 21:37:03 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2024-07-11 13:25:12 +0300 |
commit | 36397b907355e2fdb5a25a02a7921a937fd8ef4c (patch) | |
tree | 279597e408f569fce9f23a0fcb34362b6f913e16 /lib/memory-notifier-error-inject.c | |
parent | 24c6291346d98c7ece4f4bfeb5733bec1d6c7b4f (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 <[email protected]>
Signed-off-by: Junxian Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions