Loading
RDMA/hns: Fix UAF in clear bond printing
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAH10J ---------------------------------------------------------------------- bond_grp is freed after hns_roce_cleanup_bond(). Move the clear bond printing into hns_roce_cleanup_bond() to avoid UAF. Plus, the return value of hns_roce_cleanup_bond() is removed since it's not being used any more. Fixes: 2004b3f9 ("RDMA/hns: Support RoCE bonding") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>