Re: [PATCH] release_resource() check for NULL resource

From: Russell King
Date: Mon Oct 03 2005 - 08:01:39 EST


On Mon, Oct 03, 2005 at 03:54:31PM +0300, Pekka J Enberg wrote:
> On Mon, 3 Oct 2005, Russell King wrote:
> > On the other hand, release_region() is the counter-part of
> > request_region() and should be used to release resources
> > created by request_region().
>
> Right. To me, it makes sense for the release counter-part accept NULL if
> the allocation/initialization function can return it.

Right. Which it already can (with a complaint).

However, I think you missed my point though. release_resource() is
_not_ the counterpart of request_region(). It's the counter-part of
request_resource() which does not allocate any memory itself.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/