提交 b8edb641 编写于 作者: W Wei Yongjun 提交者: Tony Luck

ACPI, APEI, EINJ: Fix error return code in einj_init()

Fix to return -ENOMEM in the debugfs_create_xxx() error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: NChen Gong <gong.chen@linux.intel.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 d683b96b
...@@ -694,6 +694,7 @@ static int __init einj_init(void) ...@@ -694,6 +694,7 @@ static int __init einj_init(void)
if (rc) if (rc)
goto err_release; goto err_release;
rc = -ENOMEM;
einj_param = einj_get_parameter_address(); einj_param = einj_get_parameter_address();
if ((param_extension || acpi5) && einj_param) { if ((param_extension || acpi5) && einj_param) {
fentry = debugfs_create_x64("param1", S_IRUSR | S_IWUSR, fentry = debugfs_create_x64("param1", S_IRUSR | S_IWUSR,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册