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

[Xen-changelog] Missed two files from NULL-pointer-check changeset.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID cc5450d52e49f7af1e6f8b0a80f357268f39b5e9
# Parent  fcb7e5616102d68205815e810feef6ef90c1515b
Missed two files from NULL-pointer-check changeset.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r fcb7e5616102 -r cc5450d52e49 
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Fri Nov 11 
11:55:47 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Fri Nov 11 
13:54:20 2005
@@ -1173,8 +1173,7 @@
  destroy_ring:
        shutdown_device(info);
  out:
-       if (backend)
-               kfree(backend);
+       kfree(backend);
        return err;
 }
 
diff -r fcb7e5616102 -r cc5450d52e49 
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c       Fri Nov 11 
11:55:47 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c       Fri Nov 11 
13:54:20 2005
@@ -570,10 +570,8 @@
        }
 
 fail:
-       if (printf_buffer)
-               kfree(printf_buffer);
-       if (path_buffer)
-               kfree(path_buffer);
+       kfree(printf_buffer);
+       kfree(path_buffer);
 }
 EXPORT_SYMBOL(xenbus_dev_error);
 

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


 


Rackspace

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