Loading
RDMA/hns: Fix udca not unregistered when reset entry allocation failed
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBSE4C ---------------------------------------------------------------------- hns_roce_unregister_udca() is not called when hns_roce_alloc_reset_entry() failed. Reorder the sequence of error path in hns_roce_alloc_ucontext() to fix it. Besides, to keep the coding constant, reorder hns_roce_dealloc_ucontext() accordingly as well. Fixes: 754c3a8a ("RDMA/hns: Use one CQ bank per context") Fixes: e8b1fec4 ("RDMA/hns: Kernel notify usr space to stop ring db") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>