Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32288daf authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Thomas Gleixner
Browse files

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: 011d8261 ("RAS: Add a Corrected Errors Collector")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170623062440.6726-1-christophe.jaillet@wanadoo.fr
parent e2de64ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}