File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
drivers/infiniband/hw/hns Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,10 @@ void hns_roce_cleanup_bitmap(struct hns_roce_dev *hr_dev)
175
175
if (hr_dev -> caps .flags & HNS_ROCE_CAP_FLAG_XRC )
176
176
ida_destroy (& hr_dev -> xrcd_ida .ida );
177
177
178
- if (hr_dev -> caps .flags & HNS_ROCE_CAP_FLAG_SRQ )
178
+ if (hr_dev -> caps .flags & HNS_ROCE_CAP_FLAG_SRQ ) {
179
179
ida_destroy (& hr_dev -> srq_table .srq_ida .ida );
180
+ xa_destroy (& hr_dev -> srq_table .xa );
181
+ }
180
182
hns_roce_cleanup_qp_table (hr_dev );
181
183
hns_roce_cleanup_cq_table (hr_dev );
182
184
ida_destroy (& hr_dev -> mr_table .mtpt_ida .ida );
Original file line number Diff line number Diff line change @@ -537,5 +537,6 @@ void hns_roce_cleanup_cq_table(struct hns_roce_dev *hr_dev)
537
537
538
538
for (i = 0 ; i < HNS_ROCE_CQ_BANK_NUM ; i ++ )
539
539
ida_destroy (& hr_dev -> cq_table .bank [i ].ida );
540
+ xa_destroy (& hr_dev -> cq_table .array );
540
541
mutex_destroy (& hr_dev -> cq_table .bank_mutex );
541
542
}
Original file line number Diff line number Diff line change @@ -1603,6 +1603,7 @@ void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev)
1603
1603
for (i = 0 ; i < HNS_ROCE_QP_BANK_NUM ; i ++ )
1604
1604
ida_destroy (& hr_dev -> qp_table .bank [i ].ida );
1605
1605
xa_destroy (& hr_dev -> qp_table .dip_xa );
1606
+ xa_destroy (& hr_dev -> qp_table_xa );
1606
1607
mutex_destroy (& hr_dev -> qp_table .bank_mutex );
1607
1608
mutex_destroy (& hr_dev -> qp_table .scc_mutex );
1608
1609
}
You can’t perform that action at this time.
0 commit comments