From: "George Spelvin" Subject: Re: [PATCH 2/7] vfs: Introduce the fd closing helper Date: 28 Jul 2011 18:16:00 -0400 Message-ID: <20110728221600.22407.qmail@science.horizon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-gpGsJRJZ3PBBDgjK7y7TUQ@public.gmane.org List-Id: containers.vger.kernel.org About this patch, one thing to note: the comment about checking for a NULL filp should go with do_close() (where the resultant goto out_unlock is located) rather than sys_close. While we're doing minor cleanups, you might add: SYSCALL_DEFINE1(close, unsigned int, fd) { - int retval; - - retval = do_close(fd); + int retval = do_close(fd);