Commit 4f87fad1 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

i7core_edac: Better parse "any" addrmask

Instead of accepting just "any", accept also "any\n"
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ca9c90ba
......@@ -800,7 +800,7 @@ static ssize_t i7core_inject_store_##param( \
if (pvt->inject.enable) \
disable_inject(mci); \
\
if (!strcasecmp(data, "any")) \
if (!strcasecmp(data, "any") || !strcasecmp(data, "any\n"))\
value = -1; \
else { \
rc = strict_strtoul(data, 10, &value); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment