Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: amit.salecha@qlogic.com
Cc: netdev@vger.kernel.org, ameen.rahman@qlogic.com
Subject: Re: [PATCHv1 3/4] netxen: added sanity check for pci map
Date: Thu, 25 Mar 2010 12:04:46 -0700 (PDT)	[thread overview]
Message-ID: <20100325.120446.98057142.davem@davemloft.net> (raw)
In-Reply-To: <1269500806-15383-4-git-send-email-amit.salecha@qlogic.com>

From: Amit Kumar Salecha <amit.salecha@qlogic.com>
Date: Thu, 25 Mar 2010 00:06:45 -0700

> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
> 
> Return value of ioremap is not checked, NULL check added.

You're not even thinking when you make these changes.

Let's try again ok?

These ioremap() calls store the pointers into local variables.
So it doesn't work at all to just jump to err_out to clean
them up and iounmap them.

The unamp code you end up calling in netxen_pci_map() only does an
iounmap() on pointers stored in the netxen_adapter struct.  At this
point they haven't been stored there yet.

So they still leak.

Can you tell my patience on this patch set is very much running
out?  If you put half of the effort writing these patches as I
am putting into reviewing them, we wouldn't have to go back
and forth on this so many times.

Double check your work, and resubmit this whole patch set once you've
fixed this one, I think the other ones look fine.

Thanks.

  reply	other threads:[~2010-03-25 19:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25  7:06 [PATCHv1 0/4]netxen: bug fixes Amit Kumar Salecha
2010-03-25  7:06 ` [PATCHv1 1/4] netxen: fix bios version calculation Amit Kumar Salecha
2010-03-25  7:06 ` [PATCHv1 2/4] netxen: fix warning in ioaddr for NX3031 chip Amit Kumar Salecha
2010-03-25  7:06 ` [PATCHv1 3/4] netxen: added sanity check for pci map Amit Kumar Salecha
2010-03-25 19:04   ` David Miller [this message]
2010-03-26 10:40     ` Amit Salecha
2010-03-25  7:06 ` [PATCHv1 4/4] netxen: update version to 4.0.73 Amit Kumar Salecha

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=20100325.120446.98057142.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ameen.rahman@qlogic.com \
    --cc=amit.salecha@qlogic.com \
    --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