[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <99737F4847ED0A48AECC9F4A1974A4B80CFEFED51E@MNEXMB2.qlogic.org>
Date: Fri, 26 Mar 2010 05:40:39 -0500
From: Amit Salecha <amit.salecha@...gic.com>
To: David Miller <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Ameen Rahman <ameen.rahman@...gic.com>
Subject: RE: [PATCHv1 3/4] netxen: added sanity check for pci map
David,
Sorry for inconvenience caused. I'll take care in future work.
I have submitted reworked patches.
-Amit
-----Original Message-----
From: David Miller [mailto:davem@...emloft.net]
Sent: Friday, March 26, 2010 12:35 AM
To: Amit Salecha
Cc: netdev@...r.kernel.org; Ameen Rahman
Subject: Re: [PATCHv1 3/4] netxen: added sanity check for pci map
From: Amit Kumar Salecha <amit.salecha@...gic.com>
Date: Thu, 25 Mar 2010 00:06:45 -0700
> Signed-off-by: Amit Kumar Salecha <amit.salecha@...gic.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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists