Skip to content

Commit 8989076

Browse files
tititiou36gregkh
authored andcommitted
scsi: qla4xxx: Fix an error handling path in 'qla4xxx_get_host_stats()'
[ Upstream commit 574918e ] Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Link: https://lore.kernel.org/r/20200802101527.676054-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 0e51294 commit 8989076

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/qla4xxx/ql4_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len)
12541254
le64_to_cpu(ql_iscsi_stats->iscsi_sequence_error);
12551255
exit_host_stats:
12561256
if (ql_iscsi_stats)
1257-
dma_free_coherent(&ha->pdev->dev, host_stats_size,
1257+
dma_free_coherent(&ha->pdev->dev, stats_size,
12581258
ql_iscsi_stats, iscsi_stats_dma);
12591259

12601260
ql4_printk(KERN_INFO, ha, "%s: Get host stats done\n",

0 commit comments

Comments
 (0)