Skip to content

Commit

Permalink
RAS/CEC: Check the correct variable in the debugfs error handling
Browse files Browse the repository at this point in the history
Check the correct variable when handling a potential error from
debugfs_create_file(). Most likely a copy-paste botch.

[ Rewrite commit message. ]
Fixes: 011d826 ("RAS: Add a Corrected Errors Collector")
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
  • Loading branch information
tititiou36 authored and KAGA-KOKO committed Jun 26, 2017
1 parent e2de64e commit 32288da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ras/cec.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ static int __init create_debugfs_nodes(void)

count = debugfs_create_file("count_threshold", S_IRUSR | S_IWUSR, d,
&count_threshold, &count_threshold_ops);
if (!decay) {
if (!count) {
pr_warn("Error creating count_threshold debugfs node!\n");
goto err;
}
Expand Down

0 comments on commit 32288da

Please sign in to comment.