]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
scsi: qla2xxx: Fix the size used in a 'dma_free_coherent()' call
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 2 Aug 2020 11:07:21 +0000 (13:07 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Aug 2020 02:51:17 +0000 (22:51 -0400)
Update the size used in 'dma_free_coherent()' in order to match the one
used in the corresponding 'dma_alloc_coherent()'.

[mkp: removed memset() hunk that has already been addressed]

Link: https://lore.kernel.org/r/20200802110721.677707-1-christophe.jaillet@wanadoo.fr
Fixes: 4161cee52df8 ("[SCSI] qla4xxx: Add host statistics support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mbx.c

index 14656da20d076b257aa7eacf8f8f42b0452852a8..a43d7229f9a1c7e9b8588628f914381c35a3d9b6 100644 (file)
@@ -4964,7 +4964,7 @@ qla25xx_set_els_cmds_supported(scsi_qla_host_t *vha)
                    "Done %s.\n", __func__);
        }
 
-       dma_free_coherent(&ha->pdev->dev, DMA_POOL_SIZE,
+       dma_free_coherent(&ha->pdev->dev, ELS_CMD_MAP_SIZE,
           els_cmd_map, els_cmd_map_dma);
 
        return rval;