diff options
| author | oulijun <oulijun@huawei.com> | 2018-01-30 07:20:45 -0500 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-01 17:24:32 -0500 |
| commit | 0da6550366b8d3a221d4a927e56efec82049d518 (patch) | |
| tree | aa750831ee3cd398e510482638a67420e55a7d62 | |
| parent | fd012f1c4f713a34edc574c00ca47c60d72a31a2 (diff) | |
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>
| -rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index aa0c242ddc50..46f065ddd6c0 100644 --- a/drivers/infiniband/hw/hns/hns_roce_main.c +++ b/drivers/infiniband/hw/hns/hns_roce_main.c | |||
| @@ -636,7 +636,6 @@ err_unmap_dmpt: | |||
| 636 | hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); | 636 | hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); |
| 637 | 637 | ||
| 638 | err_unmap_mtt: | 638 | err_unmap_mtt: |
| 639 | hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtt_table); | ||
| 640 | if (hns_roce_check_whether_mhop(hr_dev, HEM_TYPE_CQE)) | 639 | if (hns_roce_check_whether_mhop(hr_dev, HEM_TYPE_CQE)) |
| 641 | hns_roce_cleanup_hem_table(hr_dev, | 640 | hns_roce_cleanup_hem_table(hr_dev, |
| 642 | &hr_dev->mr_table.mtt_cqe_table); | 641 | &hr_dev->mr_table.mtt_cqe_table); |
