scsi: qla2xxx: Fix apparent cut-n-paste error.
authorDave Jones <davej@codemonkey.org.uk>
Tue, 27 Dec 2016 18:13:21 +0000 (13:13 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Jan 2017 04:23:09 +0000 (23:23 -0500)
Commit 093df73771ba ("scsi: qla2xxx: Fix Target mode handling with
Multiqueue changes.") introduces two bodies of code that look similar
but with s/req/rsp/ in the second instance.  But in one case, it looks
like this conversion was missed.

Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Acked-by: Quinn Tran <Quinn.Tran@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c

index 8521cfe302e9e3e72c7aaf1a4753ca75f953b972..ad4edc13ebcf493f5523cf1b2060f72fd7b6e594 100644 (file)
@@ -466,7 +466,7 @@ static void qla2x00_free_queues(struct qla_hw_data *ha)
                        continue;
 
                rsp = ha->rsp_q_map[cnt];
-               clear_bit(cnt, ha->req_qid_map);
+               clear_bit(cnt, ha->rsp_qid_map);
                ha->rsp_q_map[cnt] =  NULL;
                spin_unlock_irqrestore(&ha->hardware_lock, flags);
                qla2x00_free_rsp_que(ha, rsp);