Skip to content

Commit fee3453

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 ae3df92 commit fee3453

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
@@ -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)