Loading
RDMA/hns: Fix the overflow risk of hem_list_calc_ba_range()
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAL7SX ---------------------------------------------------------------------- The 'unit' max value is 2^24 and the cur 'hopnum' value max value is 2, so the 'step' value may be more than the value range of u32. To fix it, The 'step' and context variables are changed to u64. Fixes: 38389eaa ("RDMA/hns: Add mtr support for mixed multihop addressing") Signed-off-by:wenglianfa <wenglianfa@huawei.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>