From: Ian Jackson Subject: Re: [PATCH]: xl, fix segfault when detaching non-existant disk Date: Tue, 27 Jul 2010 16:21:17 +0100 Message-ID: <19534.63853.928166.752285@mariner.uk.xensource.com> References: <1280165088.1723.2062.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1280165088.1723.2062.camel@qabil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Gianni Tedesco (3P)" Cc: Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Gianni Tedesco (3P) writes ("[PATCH]: xl, fix segfault when detaching non-existant disk"): > val = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, "%s/backend-id", diskpath)); > + if (!val) > + return ERROR_FAIL; This is fine as far as it goes, and I'll apply it, but would you like to do the same for all the other unchecked libxl_xs_read calls ? :-) Ian.