scsi: lpfc, fix memory leak
Subsystems (2)
PATCH 19/19 scsi: lpfc, fix memory leak
From: Jiri Slaby <[email protected]>
Stanse found a memory leak on one fail path in lpfc_sli4_read_rev.
Add there kfree.
Signed-off-by Jiri Slaby <[email protected]>
Acked-by James Smart <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/lpfc/lpfc_sli.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/lpfc/lpfc_sli.c renamed from drivers/scsi/lpfc/lpfc_sli.c~scsi-lpfc-fix-memory-leak +1 -0
@@ -4110,6 +4110,7 @@ lpfc_sli4_read_rev(struct lpfc_hba *phbaif (rc) {dma_free_coherent (&phba->pcidev->dev, dma_size, dmabuf->virt, dmabuf->phys); +kfree (dmabuf);return -EIO ; }
_