diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-06-26 08:35:32 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-26 09:58:57 -0400 |
commit | 32288daf3f2439f57167c03cd679c2eba28923b7 (patch) | |
tree | 1f2ecd7db488148ff2b3f7e8bbac84e8b3b6bb7e | |
parent | e2de64ec52659870b4fdef5bf08f265ce5fe1ccc (diff) |
RAS/CEC: Check the correct variable in the debugfs error handling
Check the correct variable when handling a potential error from
debugfs_create_file(). Most likely a copy-paste botch.
[ Rewrite commit message. ]
Fixes: 011d82611172 ("RAS: Add a Corrected Errors Collector")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170623062440.6726-1-christophe.jaillet@wanadoo.fr
-rw-r--r-- | drivers/ras/cec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 6aab46d91d33..d0e5d6ee882c 100644 --- a/drivers/ras/cec.c +++ b/drivers/ras/cec.c | |||
@@ -481,7 +481,7 @@ static int __init create_debugfs_nodes(void) | |||
481 | 481 | ||
482 | count = debugfs_create_file("count_threshold", S_IRUSR | S_IWUSR, d, | 482 | count = debugfs_create_file("count_threshold", S_IRUSR | S_IWUSR, d, |
483 | &count_threshold, &count_threshold_ops); | 483 | &count_threshold, &count_threshold_ops); |
484 | if (!decay) { | 484 | if (!count) { |
485 | pr_warn("Error creating count_threshold debugfs node!\n"); | 485 | pr_warn("Error creating count_threshold debugfs node!\n"); |
486 | goto err; | 486 | goto err; |
487 | } | 487 | } |