From: Ian Campbell Subject: Re: [PATCH] libxl: Fix bug in libxl_cdrom_insert, make more robust against bad xenstore data Date: Fri, 23 Nov 2012 11:48:45 +0000 Message-ID: <1353671325.13542.232.camel@zakaz.uk.xensource.com> References: <1353665146.13542.194.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-11-23 at 11:37 +0000, George Dunlap wrote: > I would have returned an error, but the fuction returns void. :-) > That leaves us the options of: > 1. Erroring and calling exit() in the middle of the function > 2. Just doing a warning > 3. Modifying the function to return success / failure > > #3 seems like the it shouldn't be too very difficult. Yes, it looks like both the callers should manage to do something sane pretty easily. > If that sounds good to you I'll re-post this patch with only the > bits you've acked, then post another patch with #3. Sounds good. Ian.