From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wK3gj3W3GzDqCd for ; Fri, 5 May 2017 17:39:29 +1000 (AEST) Date: Fri, 5 May 2017 10:39:07 +0300 From: Dan Carpenter To: walter harms Cc: Andrew Donnellan , Ian Munsie , Christophe Lombard , kernel-janitors@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Frederic Barrat Subject: Re: [PATCH] cxl: Unlock on error in probe Message-ID: <20170505073907.wtuyp3ldbsytivhu@mwanda> References: <20170505053622.0670F124037@b01ledav002.gho.pok.ibm.com> <590C2856.5070905@bfs.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <590C2856.5070905@bfs.de> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, May 05, 2017 at 09:23:02AM +0200, walter harms wrote: > > sem is a global and it looks like it's intended to be held after > > device_open() returns and only released in device_close(), so this looks > > wrong. > > > > the patch relates to the error path, do you expect a close() after the open() failed ? > You can't close if open fails. Please don't ask rhetorical questions. Just state everything in short sentences using simple words. regards, dan carpenter