From: Keir Fraser Subject: Re: [PATCH]Mini-OS: Small fix for NULL pointer handling Date: Fri, 26 Jan 2007 13:50:31 +0000 Message-ID: References: <200701261435.43136.dietmar.hahn@fujitsu-siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200701261435.43136.dietmar.hahn@fujitsu-siemens.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: Dietmar Hahn Cc: xen-devel , Grzegorz Milos List-Id: xen-devel@lists.xenproject.org Applied, thanks. The initialisation of req_prod_pvt wasn't needed at all. K. On 26/1/07 1:35 pm, "Dietmar Hahn" wrote: > Hi Gregor, > > attached is a small patch for netfront.c. > A compiler warning is fixed when -O? is used. > If the network is not configured, backend gets NULL from > xenbus_read() and this leads sometimes to a crash because this pointer is used > later. > I hope this fix is OK. Please have a look and send comments! > Thanks. > > Dietmar. > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel