[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Undisclosed.Recipients": ;
  • 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;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.