Skip to content

Commit 2b5f0c5

Browse files
igawChristoph Hellwig
authored andcommitted
nvmet-fcloop: swap list_add_tail arguments
The newly element to be added to the list is the first argument of list_add_tail. This fix is missing dcfad4a ("nvmet-fcloop: swap the list_add_tail arguments"). Fixes: 437c0b8 ("nvme-fcloop: add target to host LS request support") Signed-off-by: Daniel Wagner <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent b013b81 commit 2b5f0c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/target/fcloop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ fcloop_t2h_xmt_ls_rsp(struct nvme_fc_local_port *localport,
478478
if (targetport) {
479479
tport = targetport->private;
480480
spin_lock(&tport->lock);
481-
list_add_tail(&tport->ls_list, &tls_req->ls_list);
481+
list_add_tail(&tls_req->ls_list, &tport->ls_list);
482482
spin_unlock(&tport->lock);
483483
queue_work(nvmet_wq, &tport->ls_work);
484484
}

0 commit comments

Comments
 (0)