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

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

To: "Undisclosed.Recipients": ;
Subject: [Xen-devel] [PATCH]Mini-OS: Small fix for NULL pointer handling
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Jan 2007 14:35:43 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Grzegorz Milos <gm281@xxxxxxxxx>
Delivery-date: Fri, 26 Jan 2007 05:37:12 -0800
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=CH25a1yTU7OonHoiv1jGgynaJYFZ654d9w/ZWdv7P7CYlY/xNayzgPEKtginD4HRdCdy0Jw5DAsiP2ObhIChDpmL8RqumC0wfbvHSSAYUm1RWHm7xLjPBnAbHq1EOa8F;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
User-agent: KMail/1.9.5
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.

Attachment: mini-os.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>