From: Ian Jackson Subject: Re: [PATCH 3/3] xl: create: close restore_fd_to_close on error Date: Fri, 19 Feb 2016 16:04:21 +0000 Message-ID: <22215.15621.298508.507780@mariner.uk.xensource.com> References: <1455717855-2344-1-git-send-email-ian.campbell@citrix.com> <1455717855-2344-2-git-send-email-ian.campbell@citrix.com> <1455717855-2344-3-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1455717855-2344-3-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH 3/3] xl: create: close restore_fd_to_close on error"): > Currently the fd is opened and then later closed and > restore_fd_to_close set back to -1, however there are several goto out > and goto error_out paths in the interim. > > Since the code resets restore_fd_to_close to -1 it is OK to check this > and close on the out path too. > > CID: 1055897 Acked-by: Ian Jackson And queued for push. Ian.