Skip to content

Commit 8d2bf2e

Browse files
Junxian Huanggregkh
authored andcommitted
RDMA/hns: Fix dip entries leak on devices newer than hip09
[ Upstream commit fa2e2d3 ] DIP algorithm is also supported on devices newer than hip09, so free dip entries too. Fixes: f91696f ("RDMA/hns: Support congestion control type selection according to the FW") Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com> Link: https://patch.msgid.link/20250812122602.3524602-1-huangjunxian6@hisilicon.com Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 17ed810 commit 8d2bf2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,7 @@ static void hns_roce_v2_exit(struct hns_roce_dev *hr_dev)
30283028
if (!hr_dev->is_vf)
30293029
hns_roce_free_link_table(hr_dev);
30303030

3031-
if (hr_dev->pci_dev->revision == PCI_REVISION_ID_HIP09)
3031+
if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09)
30323032
free_dip_entry(hr_dev);
30333033
}
30343034

0 commit comments

Comments
 (0)