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

[Xen-changelog] [xen-unstable] Fix test for NULL command line in cmdline_parse()



# HG changeset patch
# User David Vrabel <david.vrabel@xxxxxxxxxx>
# Date 1332510328 0
# Node ID b7a1794aed59fd2b0816b3bbcf97690c0241814f
# Parent  e1f4d4ca53b48231d777c4b936f747e34d5be068
Fix test for NULL command line in cmdline_parse()

Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
---


diff -r e1f4d4ca53b4 -r b7a1794aed59 xen/common/kernel.c
--- a/xen/common/kernel.c       Fri Mar 23 11:46:11 2012 +0100
+++ b/xen/common/kernel.c       Fri Mar 23 13:45:28 2012 +0000
@@ -55,11 +55,11 @@
     struct kernel_param *param;
     int bool_assert;
 
+    if ( cmdline == NULL )
+        return;
+
     safe_strcpy(saved_cmdline, cmdline);
 
-    if ( p == NULL )
-        return;
-
     for ( ; ; )
     {
         /* Skip whitespace. */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.