* [PATCH] scsi/mvsas: Fix the memleak of struct sas_ha_struct:lldd_ha.
@ 2012-05-15 11:25 kedacomkernel
0 siblings, 0 replies; 2+ messages in thread
From: kedacomkernel @ 2012-05-15 11:25 UTC (permalink / raw)
To: JBottomley, yuxiangl; +Cc: linux-scsi
Signed-off-by: majianpeng <majianpeng@gmail.com>
---
drivers/scsi/mvsas/mv_init.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index cc59dff..cd9fc36 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -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);
--
1.7.5.4
--------------
kedacomkernel
2012-05-15
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] scsi/mvsas: Fix the memleak of struct sas_ha_struct:lldd_ha.
@ 2012-05-16 1:05 majianpeng
0 siblings, 0 replies; 2+ messages in thread
From: majianpeng @ 2012-05-16 1:05 UTC (permalink / raw)
To: scsi maintainers; +Cc: linux-scsi
Signed-off-by: majianpeng <majianpeng@gmail.com>
---
drivers/scsi/mvsas/mv_init.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index cc59dff..cd9fc36 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -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);
--
1.7.5.4
--------------
majianpeng
2012-05-16
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-16 1:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 1:05 [PATCH] scsi/mvsas: Fix the memleak of struct sas_ha_struct:lldd_ha majianpeng
-- strict thread matches above, loose matches on Subject: below --
2012-05-15 11:25 kedacomkernel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).