aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorChengchang Tang <[email protected]>2024-07-10 13:37:03 +0000
committerLeon Romanovsky <[email protected]>2024-07-11 10:25:12 +0000
commit36397b907355e2fdb5a25a02a7921a937fd8ef4c (patch)
tree279597e408f569fce9f23a0fcb34362b6f913e16 /drivers/acpi/cppc_acpi.c
parentRDMA/hns: Fix shift-out-bounds when max_inline_data is 0 (diff)
downloadkernel-36397b907355e2fdb5a25a02a7921a937fd8ef4c.tar.gz
kernel-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 <[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 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions