Skip to content

Commit e66701f

Browse files
tititiou36gregkh
authored andcommitted
scsi: qla2xxx: Fix the size used in a 'dma_free_coherent()' call
[ Upstream commit 650b323 ] 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: 4161cee ("[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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8989076 commit e66701f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/qla2xxx/qla_mbx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4958,7 +4958,7 @@ qla25xx_set_els_cmds_supported(scsi_qla_host_t *vha)
49584958
"Done %s.\n", __func__);
49594959
}
49604960

4961-
dma_free_coherent(&ha->pdev->dev, DMA_POOL_SIZE,
4961+
dma_free_coherent(&ha->pdev->dev, ELS_CMD_MAP_SIZE,
49624962
els_cmd_map, els_cmd_map_dma);
49634963

49644964
return rval;

0 commit comments

Comments
 (0)