Skip to content

Commit

Permalink
ACPI, APEI, EINJ: Fix error return code in einj_init()
Browse files Browse the repository at this point in the history
Fix to return -ENOMEM in the debugfs_create_xxx() error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Wei Yongjun authored and Tony Luck committed Jun 5, 2013
1 parent d683b96 commit b8edb64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/apei/einj.c
Original file line number Diff line number Diff line change
@@ -694,6 +694,7 @@ static int __init einj_init(void)
if (rc)
goto err_release;

rc = -ENOMEM;
einj_param = einj_get_parameter_address();
if ((param_extension || acpi5) && einj_param) {
fentry = debugfs_create_x64("param1", S_IRUSR | S_IWUSR,

0 comments on commit b8edb64

Please sign in to comment.