1
0
Fork 0

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: 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>
hifive-unleashed-5.1
Wei Yongjun 2013-06-05 16:18:12 -07:00 committed by Tony Luck
parent d683b96b07
commit b8edb64119
1 changed files with 1 additions and 0 deletions

View File

@ -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,