From: Denis Kirjanov <kirjanov@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: michael.hennerich@analog.com, sonic.zhang@analog.com,
cooloney@kernel.org, uclinux-dist-devel@blackfin.uclinux.org,
netdev@vger.kernel.org
Subject: Re: [PATCH] bfin_mac: fix memleak in mii_bus{probe|remove}
Date: Wed, 19 May 2010 09:18:15 +0400 [thread overview]
Message-ID: <20100519051814.GA4493@coldcone> (raw)
In-Reply-To: <20100518.141318.45114681.davem@davemloft.net>
On Tue, May 18, 2010 at 14:13 -0700, David Miller wrote:
> From: Denis Kirjanov <kirjanov@gmail.com>
> Date: Tue, 18 May 2010 15:34:46 +0400
>
> > [PATCH] bfin_mac: fix memleak in mii_bus_{probe|remove}
> > Fix memory leak with miibus->irq
> >
> > Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
>
> I've already applied the original patch.
>
> Therefore, it makes no sense to send a fresh complete version
> of the original patch to fix this.
>
> You'll need to send a relative patch against the other one to
> fix the problem.
Ok, here it is. Sorry for the previous one.
[PATCH] bfin_mac: fix invalid pointer dereference in bfin_mii_bus_probe
Fix invalid memory access.
Signed-off-by: Denis Kirjanov: <dkirjanov@kernel.org>
---
drivers/net/bfin_mac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
index 7a17b8a..368f333 100644
--- a/drivers/net/bfin_mac.c
+++ b/drivers/net/bfin_mac.c
@@ -1626,8 +1626,8 @@ static int __devinit bfin_mii_bus_probe(struct platform_device *pdev)
return 0;
out_err_mdiobus_register:
- mdiobus_free(miibus);
kfree(miibus->irq);
+ mdiobus_free(miibus);
out_err_alloc:
peripheral_free_list(pin_req);
prev parent reply other threads:[~2010-05-19 5:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 9:28 [PATCH] bfin_mac: fix memleak in mii_bus{probe|remove} Denis Kirjanov <kirjanov@gmail.com
2010-05-18 10:05 ` Sonic Zhang
2010-05-18 11:34 ` Denis Kirjanov
2010-05-18 21:13 ` David Miller
2010-05-18 21:15 ` David Miller
2010-05-19 5:18 ` Denis Kirjanov [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=20100519051814.GA4493@coldcone \
--to=kirjanov@gmail.com \
--cc=cooloney@kernel.org \
--cc=davem@davemloft.net \
--cc=michael.hennerich@analog.com \
--cc=netdev@vger.kernel.org \
--cc=sonic.zhang@analog.com \
--cc=uclinux-dist-devel@blackfin.uclinux.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 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).