From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754941Ab0JDKqE (ORCPT ); Mon, 4 Oct 2010 06:46:04 -0400 Received: from www.tglx.de ([62.245.132.106]:60330 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754368Ab0JDKqC (ORCPT ); Mon, 4 Oct 2010 06:46:02 -0400 Date: Mon, 4 Oct 2010 12:47:39 +0200 From: "Hans J. Koch" To: "Eric W. Biederman" Cc: Greg KH , Greg KH , "Hans J. Koch" , linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH 5/5] uio: Implement hotunplug support, using libunload Message-ID: <20101004104739.GA9961@silverbox.local> References: <20100917205946.GF2522@local> <20100924104555.GC1819@silverbox.local> <20100924173106.GA4966@silverbox.local> <20100925003308.GA29910@suse.de> <20100926192142.GA7252@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 26, 2010 at 03:49:03PM -0700, Eric W. Biederman wrote: Checkpatch reports one error, see below. Thanks, Hans > > + /* > + * Take the users lock before opening the file to ensure the > + * file is not unregistered while it is being opened. > + */ > + ret = -EIO; > + if (!unload_trylock(&idev->unload)) > + goto err_out; > + > + ret = 0; > + if (idev->info->open) > ret = idev->info->open(idev->info, inode); > - if (ret) > - goto err_infoopen; > + The above line adds trailing whitespace. > + /* > + * Add to the listener list only if the open succeeds. > + * This ensures that uio_unregister_device won't call > + * release unless open has succeeded. > + */