WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH]Mini-OS: Small fix for NULL pointer handling

To: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH]Mini-OS: Small fix for NULL pointer handling
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 26 Jan 2007 13:50:31 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Grzegorz Milos <gm281@xxxxxxxxx>
Delivery-date: Fri, 26 Jan 2007 05:50:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200701261435.43136.dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdBUPGaMGRBaq1EEduhMgANk04WTA==
Thread-topic: [Xen-devel] [PATCH]Mini-OS: Small fix for NULL pointer handling
User-agent: Microsoft-Entourage/11.3.3.061214
Applied, thanks. The initialisation of req_prod_pvt wasn't needed at all.

 K.

On 26/1/07 1:35 pm, "Dietmar Hahn" <dietmar.hahn@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>