]> Git Repo - J-linux.git/commitdiff
scsi: qla2xxx: fx00 copypaste typo
authorMeelis Roos <[email protected]>
Thu, 8 Mar 2018 13:44:37 +0000 (15:44 +0200)
committerMartin K. Petersen <[email protected]>
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 <[email protected]>
Acked-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
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);
This page took 0.056163 seconds and 4 git commands to generate.