From: Jiri Slaby <jirislaby@xxxxxxxxx> Stanse found a memory leak on one fail path in lpfc_sli4_read_rev. Add there kfree. Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx> Acked-by: James Smart <james.smart@xxxxxxxxxx> Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/scsi/lpfc/lpfc_sli.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/scsi/lpfc/lpfc_sli.c~scsi-lpfc-fix-memory-leak drivers/scsi/lpfc/lpfc_sli.c --- a/drivers/scsi/lpfc/lpfc_sli.c~scsi-lpfc-fix-memory-leak +++ a/drivers/scsi/lpfc/lpfc_sli.c @@ -4110,6 +4110,7 @@ lpfc_sli4_read_rev(struct lpfc_hba *phba if (rc) { dma_free_coherent(&phba->pcidev->dev, dma_size, dmabuf->virt, dmabuf->phys); + kfree(dmabuf); return -EIO; } _ -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html