Dietmar Hahn
2007-Jan-26 13:35 UTC
[Xen-devel] [PATCH]Mini-OS: Small fix for NULL pointer handling
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
Keir Fraser
2007-Jan-26 13:50 UTC
Re: [Xen-devel] [PATCH]Mini-OS: Small fix for NULL pointer handling
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@fujitsu-siemens.com> 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_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel