[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging-4.10] xen: Fix backport of "xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct"
commit 3b0eebb1ca6e158d7b9a5e57d68ddb4093882822 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Fri May 3 10:59:18 2019 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri May 3 10:59:18 2019 +0200 xen: Fix backport of "xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct" These were missed as a consequence of being rebased over other cmdline cleanup. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/dom0_build.c | 4 ++-- xen/arch/x86/hvm/vmx/vmcs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/dom0_build.c b/xen/arch/x86/dom0_build.c index 9886d60557..0091ba94f2 100644 --- a/xen/arch/x86/dom0_build.c +++ b/xen/arch/x86/dom0_build.c @@ -238,10 +238,10 @@ static int __init parse_dom0_param(const char *s) if ( !ss ) ss = strchr(s, '\0'); - if ( !strncmp(s, "pvh", ss - s) ) + if ( !cmdline_strcmp(s, "pvh") ) dom0_pvh = true; #ifdef CONFIG_SHADOW_PAGING - else if ( !strncmp(s, "shadow", ss - s) ) + else if ( !cmdline_strcmp(s, "shadow") ) opt_dom0_shadow = true; #endif else diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index e7f8eea6b8..205f2307c2 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -90,9 +90,9 @@ static int __init parse_ept_param(const char *s) if ( !ss ) ss = strchr(s, '\0'); - if ( !strncmp(s, "pml", ss - s) ) + if ( !cmdline_strcmp(s, "pml") ) opt_pml_enabled = val; - else if ( !strncmp(s, "ad", ss - s) ) + else if ( !cmdline_strcmp(s, "ad") ) opt_ept_ad = val; else rc = -EINVAL; -- generated by git-patchbot for /home/xen/git/xen.git#staging-4.10 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |