mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
qla2x00t-32gbit: Fix the size used in a 'dma_free_coherent()' call
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>
See also upstream commit 650b323c8e7c3ac4830a20895b1d444fd68dd787.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4956,7 +4956,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;
|
||||
|
||||
Reference in New Issue
Block a user