mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
RDMA/hns: Fix misplaced call to hns_roce_cleanup_hem_table
The mtt_table is cleaned up during the err_unmap_cqe label, it is a mistake to duplicate the cleanup during the later unwind labels. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
fd012f1c4f
commit
0da6550366
@ -636,7 +636,6 @@ err_unmap_dmpt:
|
|||||||
hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table);
|
hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table);
|
||||||
|
|
||||||
err_unmap_mtt:
|
err_unmap_mtt:
|
||||||
hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtt_table);
|
|
||||||
if (hns_roce_check_whether_mhop(hr_dev, HEM_TYPE_CQE))
|
if (hns_roce_check_whether_mhop(hr_dev, HEM_TYPE_CQE))
|
||||||
hns_roce_cleanup_hem_table(hr_dev,
|
hns_roce_cleanup_hem_table(hr_dev,
|
||||||
&hr_dev->mr_table.mtt_cqe_table);
|
&hr_dev->mr_table.mtt_cqe_table);
|
||||||
|
Loading…
Reference in New Issue
Block a user