i7core_edac: Better parse "any" addrmask
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 4 Oct 2009 14:54:56 +0000 (11:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 10 May 2010 14:49:30 +0000 (11:49 -0300)
Instead of accepting just "any", accept also "any\n"

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c

index 94aeca011ac41088671982cd4201a2133013dd1b..477b62a74dbfee56c2eaabf4756d58a528b90f9d 100644 (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);          \