All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI / APEI: fix error return code in einj_init()
@ 2013-06-05  2:17 Wei Yongjun
  2013-06-05  2:59 ` Chen Gong
  0 siblings, 1 reply; 7+ messages in thread
From: Wei Yongjun @ 2013-06-05  2:17 UTC (permalink / raw)
  To: lenb, rjw, gong.chen, tony.luck; +Cc: yongjun_wei, linux-acpi

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

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>
---
 drivers/acpi/apei/einj.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index 9a47d85..9d60bdd 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -732,6 +732,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,


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-12 22:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-05  2:17 [PATCH] ACPI / APEI: fix error return code in einj_init() Wei Yongjun
2013-06-05  2:59 ` Chen Gong
2013-06-11 22:26   ` Rafael J. Wysocki
2013-06-11 23:04     ` Luck, Tony
2013-06-12 11:13       ` Rafael J. Wysocki
2013-06-12 13:42         ` Luck, Tony
2013-06-12 22:51           ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.