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:
Jaeyoon Choi committed 2026-08-18 04:50:27 +00:00
1 parent a508a9f723
commit dbcebc7c66
1 file changed
+1 -2
+1 -2
View File
@@ -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);