From: Alexander Graf Subject: Re: [PATCH v3] xen_disk: cope with missing xenstore "params" node Date: Thu, 30 Jun 2011 17:11:06 +0200 Message-ID: <4E0C920A.8030308@suse.de> References: <1309187401-27685-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1309187401-27685-1-git-send-email-stefano.stabellini@eu.citrix.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: stefano.stabellini@eu.citrix.com Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org On 06/27/2011 05:10 PM, stefano.stabellini@eu.citrix.com wrote: > From: Stefano Stabellini > > When disk is a cdrom and the drive is empty the "params" node in > xenstore might be missing completely: cope with it instead of > segfaulting. > > > Updated in v2: > > - actually removed the strchr(blkdev->params, ':') that caused the > segfault; > > - free all the allocated strings from xenstore before returning; > > > Updated in v3: > > - set blkdev fields to NULL after free'ing them. Thanks, applied to xen-next branch. Alex