mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
ufshci: pass the queue being destroyed to the cmd descriptor teardown
ufshci_req_sdb_destroy() hardcoded &ctrlr->transfer_req_queue when destroying command descriptors instead of using its req_queue argument. No functional change: the branch only runs for the transfer queue, so the two pointers are always the same today. Using the argument keeps the function queue-agnostic for when more transfer queues exist (MCQ). Reviewed by: imp (mentor) Sponsored by: Samsung Electronics Differential Revision: https://reviews.freebsd.org/D58816
This commit is contained in:
1 parent
a508a9f723
commit
dbcebc7c66
1 file changed
+1
-2
@@ -330,8 +330,7 @@ ufshci_req_sdb_destroy(struct ufshci_controller *ctrlr,
|
||||
|
||||
if (hwq->act_tr != NULL) {
|
||||
if (!req_queue->is_task_mgmt)
|
||||
ufshci_req_sdb_cmd_desc_destroy(
|
||||
&ctrlr->transfer_req_queue);
|
||||
ufshci_req_sdb_cmd_desc_destroy(req_queue);
|
||||
|
||||
for (i = 0; i < req_queue->num_trackers; i++)
|
||||
free(hwq->act_tr[i], M_UFSHCI);
|
||||
|
||||
Reference in new issue
Block a user