aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-10-04 11:54:56 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-10 11:49:30 -0300
commit4f87fad1d32fcdda448f9eb430c9c234a1939ece (patch)
tree40595c8e16b83eda3b7bf468fb0fdb72d34a8f5e
parentca9c90ba09ca3c9799319f46a56f397afbf617c2 (diff)
downloadkernel_samsung_crespo-4f87fad1d32fcdda448f9eb430c9c234a1939ece.zip
kernel_samsung_crespo-4f87fad1d32fcdda448f9eb430c9c234a1939ece.tar.gz
kernel_samsung_crespo-4f87fad1d32fcdda448f9eb430c9c234a1939ece.tar.bz2
i7core_edac: Better parse "any" addrmask
Instead of accepting just "any", accept also "any\n" Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-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 94aeca0..477b62a 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); \