Skip to contentSkip to conversation

scsi/mvsas: Fix the memleak of struct sas_ha_struct:lldd_ha.

PATCH New majianpeng 1 participant 1 message May 16, 2012 SCSI

lore
Share & tools
lore

majianpeng

author
#0 lore raw

PATCH 1/1 scsi/mvsas: Fix the memleak of struct sas_ha_struct:lldd_ha.

---
 drivers/scsi/mvsas/mv_init.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/mvsas/mv_init.c +1 -0
index cc59dff..cd9fc36 100644
@@ -671,6 +671,7 @@ static void __devexit mvs_pci_remove(struct pci_dev *pdev)
 	}
 	kfree(sha->sas_phy);
 	kfree(sha->sas_port);
+	kfree(sha->lldd_ha);
 	kfree(sha);
 	pci_release_regions(pdev);
 	pci_disable_device(pdev);
Signature · 5 lines
1.7.5.4
 				
--------------
majianpeng
2012-05-16