[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [patch] Only skip the image name if it is the image name
When kexecing the BOOT_IMAGE isn't provided on the second kernel's command line and thus cmdline_parse() was just skipping over the first parameter. Observed on ia64 Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx> Index: xen-unstable.hg/xen/common/kernel.c =================================================================== --- xen-unstable.hg.orig/xen/common/kernel.c 2007-08-28 18:24:54.000000000 +0900 +++ xen-unstable.hg/xen/common/kernel.c 2007-08-28 18:25:01.000000000 +0900 @@ -37,8 +37,9 @@ void cmdline_parse(char *cmdline) /* Skip whitespace and the image name. */ while ( *p == ' ' ) p++; - if ( (p = strchr(p, ' ')) == NULL ) - return; + if (! strncmp(p, "BOOT_IMAGE=", strlen("BOOT_IMAGE=")) ) + if ( (p = strchr(p, ' ')) == NULL ) + return; for ( ; ; ) { _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |