From: "majianpeng" <majianpeng@gmail.com>
To: scsi maintainers <JBottomley@Parallels.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>
Subject: [PATCH] scsi/mvsas: Fix the memleak of struct sas_ha_struct:lldd_ha.
Date: Wed, 16 May 2012 09:05:55 +0800 [thread overview]
Message-ID: <201205160905484539991@gmail.com> (raw)
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
next reply other threads:[~2012-05-16 1:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-16 1:05 majianpeng [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-15 11:25 [PATCH] scsi/mvsas: Fix the memleak of struct sas_ha_struct:lldd_ha kedacomkernel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201205160905484539991@gmail.com \
--to=majianpeng@gmail.com \
--cc=JBottomley@Parallels.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.