From: "Jianpeng Ma" <majianpeng@gmail.com>
To: scsi maintainers <JBottomley@parallels.com>
Cc: 于向亮 <yuxiangl@marvell.com>, linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] scsi/mvsas: Fix memeleak when remove mvsas.ko.
Date: Mon, 15 Oct 2012 18:08:54 +0800 [thread overview]
Message-ID: <201210151808514379358@gmail.com> (raw)
In-Reply-To: 201208011821354063261@gmail.com
On 2012-08-01 18:21 majianpeng <majianpeng@gmail.com> Wrote:
>unreferenced object 0xffff8800a83d6e80 (size 64):
> comm "insmod", pid 10288, jiffies 4296886959 (age 662.587s)
> hex dump (first 32 bytes):
> 01 04 01 00 00 00 00 00 00 00 a8 76 00 88 ff ff ...........v....
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
> backtrace:
> [<ffffffff815dd941>] kmemleak_alloc+0x21/0x50
> [<ffffffff81110763>] __kmalloc+0x153/0x240
> [<ffffffffa007e7da>] 0xffffffffa007e7da
> [<ffffffffa007ee71>] 0xffffffffa007ee71
> [<ffffffff812a08a5>] pci_device_probe+0x75/0xa0
> [<ffffffff8139c1e7>] driver_probe_device+0x77/0x230
> [<ffffffff8139c43b>] __driver_attach+0x9b/0xa0
> [<ffffffff8139a6fe>] bus_for_each_dev+0x4e/0x80
> [<ffffffff8139bd59>] driver_attach+0x19/0x20
> [<ffffffff8139b900>] bus_add_driver+0x180/0x280
> [<ffffffff8139c945>] driver_register+0x75/0x150
> [<ffffffff812a0640>] __pci_register_driver+0x50/0xc0
> [<ffffffffa003f086>] 0xffffffffa003f086
> [<ffffffff810001ba>] do_one_initcall+0x3a/0x160
> [<ffffffff8108a744>] sys_init_module+0xb04/0x1d10
> [<ffffffff816005a2>] system_call_fastpath+0x16/0x1b
>
>Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
>---
> drivers/scsi/mvsas/mv_init.c | 1 +
> 1 file changed, 1 insertion(+)
>
>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.9.5
Hi JBottomley,
How about this patch?
Thanks!
Jianpeng
prev parent reply other threads:[~2012-10-15 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 10:21 [PATCH] scsi/mvsas: Fix memeleak when remove mvsas.ko majianpeng
2012-10-15 10:08 ` Jianpeng Ma [this message]
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=201210151808514379358@gmail.com \
--to=majianpeng@gmail.com \
--cc=JBottomley@parallels.com \
--cc=linux-scsi@vger.kernel.org \
--cc=yuxiangl@marvell.com \
/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 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).