From e33b5668e66263e9701e1a287c56ddfec9008c43 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:29 +1100 Subject: [PATCH] acpi-memory-hotplug-support-getting-hotplug-info-from-srat-fix-fix use strcmp() Cc: Tang Chen Signed-off-by: Andrew Morton --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8571e4c17489..822ec0108861 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5317,7 +5317,7 @@ static int __init cmdline_parse_movablemem_map(char *p) if (!p) goto err; - if (!strncmp(p, "acpi", max_t(size_t, 4, strlen(p)))) + if (!strcmp(p, "acpi")) movablemem_map.acpi = true; /* -- 2.39.5