Skip to content

Commit fa2e2d3

Browse files
Junxian Huangrleon
authored andcommitted
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: 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>
1 parent 111aea0 commit fa2e2d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

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

3046-
if (hr_dev->pci_dev->revision == PCI_REVISION_ID_HIP09)
3046+
if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09)
30473047
free_dip_entry(hr_dev);
30483048
}
30493049

0 commit comments

Comments
 (0)