“6bd96f3c332d422c0dda302f1b32c8e21dd75ee3”上不存在“arch/arm/mach-imx/mach-cpuimx35.c”
提交 32288daf 编写于 作者: C Christophe JAILLET 提交者: Thomas Gleixner

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: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NBorislav Petkov <bp@suse.de>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170623062440.6726-1-christophe.jaillet@wanadoo.fr
上级 e2de64ec
...@@ -481,7 +481,7 @@ static int __init create_debugfs_nodes(void) ...@@ -481,7 +481,7 @@ static int __init create_debugfs_nodes(void)
count = debugfs_create_file("count_threshold", S_IRUSR | S_IWUSR, d, count = debugfs_create_file("count_threshold", S_IRUSR | S_IWUSR, d,
&count_threshold, &count_threshold_ops); &count_threshold, &count_threshold_ops);
if (!decay) { if (!count) {
pr_warn("Error creating count_threshold debugfs node!\n"); pr_warn("Error creating count_threshold debugfs node!\n");
goto err; goto err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册