From: Ian Jackson Subject: Re: [PATCH v5 2/8] libxl: libxl__device_disk_local_attach return a new libxl_device_disk Date: Mon, 14 May 2012 15:15:44 +0100 Message-ID: <20401.5008.79214.336391@mariner.uk.xensource.com> References: <1336130000-27261-2-git-send-email-stefano.stabellini@eu.citrix.com> <20388.878.645214.92917@mariner.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: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("Re: [PATCH v5 2/8] libxl: libxl__device_disk_local_attach return a new libxl_device_disk"): > On Fri, 4 May 2012, Ian Jackson wrote: > > Stefano Stabellini writes ("[PATCH v5 2/8] libxl: libxl__device_disk_local_attach return a new libxl_device_disk"): > > > LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "locally attaching qdisk %s\n", > > > - disk->pdev_path); > > > + in_disk->pdev_path); > > > > I think in_disk->pdev_path can be NULL here ? > > It cannot, unless a wrong configuration was provided. In that case we'll > fail to open the empty disk later on. But not until we've called LIBXL__LOG(..., "%s", NULL) which is undefined behaviour (according to the spec) and which on all systems we are likely to run on will print "(null)". Ian.