i7core_edac: Better parse "any" addrmask

Instead of accepting just "any", accept also "any\n"

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2009-10-04 11:54:56 -03:00
parent ca9c90ba09
commit 4f87fad1d3
1 changed files with 1 additions and 1 deletions

View File

@ -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); \