summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-10-04 16:54:56 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-10 16:49:30 +0200
commit4f87fad1d32fcdda448f9eb430c9c234a1939ece (patch)
tree40595c8e16b83eda3b7bf468fb0fdb72d34a8f5e /drivers/edac
parenti7core_edac: Use a lockless ringbuffer (diff)
downloadlinux-4f87fad1d32fcdda448f9eb430c9c234a1939ece.tar.xz
linux-4f87fad1d32fcdda448f9eb430c9c234a1939ece.zip
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( \
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); \