[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/5] Fix test for NULL command line in cmdline_parse()
From: David Vrabel <david.vrabel@xxxxxxxxxx> Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> Cc: Keir Fraser <keir@xxxxxxx> --- xen/common/kernel.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 145b0b6..75e6375 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -53,11 +53,11 @@ void __init cmdline_parse(const char *cmdline) struct kernel_param *param; int bool_assert; - safe_strcpy(saved_cmdline, cmdline); - - if ( p == NULL ) + if ( cmdline == NULL ) return; + safe_strcpy(saved_cmdline, cmdline); + for ( ; ; ) { /* Skip whitespace. */ -- 1.7.2.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |