RDMA/hns: Fix HW configurations not cleared in error flow
authorwenglianfa <wenglianfa@huawei.com>
Thu, 3 Jul 2025 11:39:01 +0000 (19:39 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 6 Jul 2025 06:46:02 +0000 (02:46 -0400)
commit998b41cb20b02c4e28ac558e4e7f8609d659ec05
treed6dcc82c9cf5409c33902919748dfa12f9e8533e
parentc6957b95ecc5b63c5a4bb4ecc28af326cf8f6dc8
RDMA/hns: Fix HW configurations not cleared in error flow

hns_roce_clear_extdb_list_info() will eventually do some HW
configurations through FW, and they need to be cleared by
calling hns_roce_function_clear() when the initialization
fails.

Fixes: 7e78dd816e45 ("RDMA/hns: Clear extended doorbell info before using")
Signed-off-by: wenglianfa <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20250703113905.3597124-3-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c