]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: qla2xxx: fx00 copypaste typo
authorMeelis Roos <mroos@linux.ee>
Thu, 8 Mar 2018 13:44:37 +0000 (15:44 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 21 Mar 2018 23:03:07 +0000 (19:03 -0400)
Fix an obvious copy-paste error in freeing QLAFX00 response queue - the
code checked for rsp->ring but freed rsp->ring_fx00.

[mkp: applied by hand]

Signed-off-by: Meelis Roos <mroos@linux.ee>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c

index 5c5dcca4d1da4aee502f2ac33b3dd13a8375812c..b12fea6367b594b6c8bd9b80c636967218914f06 100644 (file)
@@ -496,7 +496,7 @@ static void qla2x00_free_rsp_que(struct qla_hw_data *ha, struct rsp_que *rsp)
                return;
 
        if (IS_QLAFX00(ha)) {
-               if (rsp && rsp->ring)
+               if (rsp && rsp->ring_fx00)
                        dma_free_coherent(&ha->pdev->dev,
                            (rsp->length_fx00 + 1) * sizeof(request_t),
                            rsp->ring_fx00, rsp->dma_fx00);