aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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); \