aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-10-04 10:54:56 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-10 10:49:30 -0400
commit4f87fad1d32fcdda448f9eb430c9c234a1939ece (patch)
tree40595c8e16b83eda3b7bf468fb0fdb72d34a8f5e /drivers/edac
parentca9c90ba09ca3c9799319f46a56f397afbf617c2 (diff)
i7core_edac: Better parse "any" addrmask
Instead of accepting just "any", accept also "any\n" Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/i7core_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 94aeca011ac4..477b62a74dbf 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -800,7 +800,7 @@ static ssize_t i7core_inject_store_##param( \
800 if (pvt->inject.enable) \ 800 if (pvt->inject.enable) \
801 disable_inject(mci); \ 801 disable_inject(mci); \
802 \ 802 \
803 if (!strcasecmp(data, "any")) \ 803 if (!strcasecmp(data, "any") || !strcasecmp(data, "any\n"))\
804 value = -1; \ 804 value = -1; \
805 else { \ 805 else { \
806 rc = strict_strtoul(data, 10, &value); \ 806 rc = strict_strtoul(data, 10, &value); \