Commit fa2e2d31 authored by Junxian Huang's avatar Junxian Huang Committed by Leon Romanovsky
Browse files

RDMA/hns: Fix dip entries leak on devices newer than hip09



DIP algorithm is also supported on devices newer than hip09, so free
dip entries too.

Fixes: f91696f2 ("RDMA/hns: Support congestion control type selection according to the FW")
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20250812122602.3524602-1-huangjunxian6@hisilicon.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 111aea04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3043,7 +3043,7 @@ static void hns_roce_v2_exit(struct hns_roce_dev *hr_dev)
	if (!hr_dev->is_vf)
		hns_roce_free_link_table(hr_dev);

	if (hr_dev->pci_dev->revision == PCI_REVISION_ID_HIP09)
	if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09)
		free_dip_entry(hr_dev);
}