mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 07:36:10 -04:00
i7core_edac: Better parse "any" addrmask
Instead of accepting just "any", accept also "any\n" Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user