netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Dirk Opfer <Dirk@Opfer-Online.de>
Cc: netdev@vger.kernel.org, Ben Dooks <ben@simtec.co.uk>
Subject: Re: [PATCH] Fix dm9000 release_resource
Date: Thu, 31 Aug 2006 09:32:12 +0200	[thread overview]
Message-ID: <20060831073212.GB13103@localhost.localdomain> (raw)
In-Reply-To: <0ML25U-1GIK8C13Mq-0007lB@mrelayeu.kundenserver.de>

On Wed, Aug 30, 2006 at 09:04:45AM +0200, Dirk Opfer wrote:
> dm9000_release_board calls release_resource with the platform resource
> instead of the requested resource:
> 
> db->addr_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> db->addr_req = request_mem_region(db->addr_res->start, i, pdev->name);
> 
> dm9000_release_board:
> 
>     if (db->addr_res != NULL) {
>         release_resource(db->addr_res);
>         kfree(db->addr_req);
> 
> With this behavior the kernel will crash on the second removal. The
> attached patch fix this problem.
> 
> 
> Signed-off-by: Dirk Opfer <Dirk@Opfer-Online.de>

I thought this was fixed long ago, it must have been lost somewhere.
Anyway:

Acked-by: Sascha Hauer <s.hauer@pengutronix.de>



-- 
 Dipl.-Ing. Sascha Hauer | http://www.pengutronix.de
  Pengutronix - Linux Solutions for Science and Industry
    Handelsregister: Amtsgericht Hildesheim, HRA 2686
      Hannoversche Str. 2, 31134 Hildesheim, Germany
    Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

       reply	other threads:[~2006-08-31  7:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0ML25U-1GIK8C13Mq-0007lB@mrelayeu.kundenserver.de>
2006-08-31  7:32 ` Sascha Hauer [this message]
2006-08-30  7:04 [PATCH] Fix dm9000 release_resource Dirk Opfer
2006-08-31  9:39 ` Ben Dooks
2006-09-06 14:58 ` Jeff Garzik
2006-09-06 17:53   ` Dirk Opfer
2006-09-11 13:08     ` Jeff Garzik

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=20060831073212.GB13103@localhost.localdomain \
    --to=s.hauer@pengutronix.de \
    --cc=Dirk@Opfer-Online.de \
    --cc=ben@simtec.co.uk \
    --cc=netdev@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 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).