On Mon, 3 Oct 2005, Russell King wrote: > 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. So what is the counter-part for request_region if it's not release_resource? As far as I can tell, release_region is marked as compatability cruft. But anyway, my point is that dealing with NULL in many release functions is beneficial for releasing a partially initialized state. Pekka - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] release_resource() check for NULL resource
- From: Russell King <rmk+lkml@arm.linux.org.uk>
- Re: [PATCH] release_resource() check for NULL resource
- References:
- [PATCH] release_resource() check for NULL resource
- From: Ben Dooks <ben-linux@fluff.org>
- Re: [PATCH] release_resource() check for NULL resource
- From: "Randy.Dunlap" <rdunlap@xenotime.net>
- Re: [PATCH] release_resource() check for NULL resource
- From: Ben Dooks <ben-linux@fluff.org>
- Re: [PATCH] release_resource() check for NULL resource
- From: Jesper Juhl <jesper.juhl@gmail.com>
- Re: [PATCH] release_resource() check for NULL resource
- From: Russell King <rmk+lkml@arm.linux.org.uk>
- Re: [PATCH] release_resource() check for NULL resource
- From: Pekka Enberg <penberg@cs.helsinki.fi>
- Re: [PATCH] release_resource() check for NULL resource
- From: Russell King <rmk+lkml@arm.linux.org.uk>
- Re: [PATCH] release_resource() check for NULL resource
- From: Pekka J Enberg <penberg@cs.Helsinki.FI>
- Re: [PATCH] release_resource() check for NULL resource
- From: Russell King <rmk+lkml@arm.linux.org.uk>
- [PATCH] release_resource() check for NULL resource
- Prev by Date: Re: [PATCH] release_resource() check for NULL resource
- Next by Date: Re: what's next for the linux kernel?
- Previous by thread: Re: [PATCH] release_resource() check for NULL resource
- Next by thread: Re: [PATCH] release_resource() check for NULL resource
- Index(es):
![]() |