[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090807100136.GB12932@skl-net.de>
Date: Fri, 7 Aug 2009 12:01:36 +0200
From: Steffen Klassert <klassert@...hematik.tu-chemnitz.de>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Sergei Shtylyov <sshtylyov@...mvista.com>, netdev@...r.kernel.org
Subject: Re: 3x59x-fix-pci-resource-management.patch
On Thu, Aug 06, 2009 at 03:42:23PM -0700, Andrew Morton wrote:
> /* PCI-only startup logic */
> if (pdev) {
> - /* EISA resources already marked, so only PCI needs to do this here */
> - /* Ignore return value, because Cardbus drivers already allocate for us */
> - if (request_region(dev->base_addr, vci->io_size, print_name) != NULL)
> - vp->must_free_region = 1;
> -
I don't know what cardbus does, but __request_region() returns NULL on
memory allocation failure for struct resource too. So this did not work
in all cases anyway. If cardbus allocates for us, we should handle it in
some way, if not I'm fine with the patch as it is.
--
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