Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932179AbVJCNMo (ORCPT ); Mon, 3 Oct 2005 09:12:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932183AbVJCNMo (ORCPT ); Mon, 3 Oct 2005 09:12:44 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:47596 "EHLO mail.cs.helsinki.fi") by vger.kernel.org with ESMTP id S932179AbVJCNMn (ORCPT ); Mon, 3 Oct 2005 09:12:43 -0400 Date: Mon, 3 Oct 2005 16:12:41 +0300 (EEST) From: Pekka J Enberg To: Russell King cc: Jesper Juhl , Ben Dooks , "Randy.Dunlap" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] release_resource() check for NULL resource In-Reply-To: <20051003130048.GE16717@flint.arm.linux.org.uk> Message-ID: References: <20051002170318.GA22074@home.fluff.org> <20051002103922.34dd287d.rdunlap@xenotime.net> <20051003094803.GC3500@home.fluff.org> <9a8748490510030259o43646cbbo22b37f1791d267e@mail.gmail.com> <20051003100431.GA16717@flint.arm.linux.org.uk> <84144f020510030543q10ff4fd2g138de4d06eddc440@mail.gmail.com> <20051003124950.GD16717@flint.arm.linux.org.uk> <20051003130048.GE16717@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 784 Lines: 18 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/