Commit de8a9a4f authored by Chengchang Tang's avatar Chengchang Tang Committed by openeuler-sync-bot
Browse files

RDMA/hns: Fix missing dealloc_dfx_cnt() during device unregister

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7PDHP



---------------------------------------------------------------

The function hns_roce_dealloc_dfx_cnt() was omitted while
uploading "RDMA/hns: Add dfx cnt stats".

This patch fixes it.

Fixes: d5a4ca75 ("RDMA/hns: Add dfx cnt stats")
Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
(cherry picked from commit 0e452e80)
parent 794c1919
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1500,6 +1500,7 @@ void hns_roce_exit(struct hns_roce_dev *hr_dev, bool bond_cleanup)
	hns_roce_cmd_cleanup(hr_dev);
	if (hr_dev->hw->cmq_exit)
		hr_dev->hw->cmq_exit(hr_dev);
	hns_roce_dealloc_dfx_cnt(hr_dev);
}

MODULE_LICENSE("Dual BSD/GPL");