kernel_samsung_a53x/drivers/infiniband
wenglianfa cb4947a326 RDMA/hns: Fix the overflow risk of hem_list_calc_ba_range()
[ Upstream commit d586628b169d14bbf36be64d2b3ec9d9d2fe0432 ]

The max value of 'unit' and 'hop_num' is 2^24 and 2, so the value of
'step' may exceed the range of u32. Change the type of 'step' to u64.

Fixes: 38389eaa4db1 ("RDMA/hns: Add mtr support for mixed multihop addressing")
Signed-off-by: wenglianfa <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20240906093444.3571619-5-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:25 +01:00
..
core RDMA/iwcm: Fix WARNING:at_kernel/workqueue.c:#check_flush_dependency 2024-11-23 23:21:25 +01:00
hw RDMA/hns: Fix the overflow risk of hem_list_calc_ba_range() 2024-11-23 23:21:25 +01:00
sw
ulp RDMA/rtrs: Fix the problem of variable not initialized fully 2024-11-23 23:20:44 +01:00
Kconfig
Makefile