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

* Re: [PATCH] ACPI / APEI: fix error return code in einj_init()
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Chen Gong @ 2013-06-05  2:59 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: lenb, rjw, tony.luck, yongjun_wei, linux-acpi

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

On Wed, Jun 05, 2013 at 10:17:35AM +0800, Wei Yongjun wrote:
> Date: Wed, 5 Jun 2013 10:17:35 +0800
> From: Wei Yongjun <weiyj.lk@gmail.com>
> To: lenb@kernel.org, rjw@sisk.pl, gong.chen@linux.intel.com,
>  tony.luck@intel.com
> Cc: yongjun_wei@trendmicro.com.cn, linux-acpi@vger.kernel.org
> Subject: [PATCH] ACPI / APEI: fix error return code in einj_init()
> 
> 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,
> 
OK to me.

Reviewed-by: Chen Gong <gong.chen@linux.intel.com>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] ACPI / APEI: fix error return code in einj_init()
  2013-06-05  2:59 ` Chen Gong
@ 2013-06-11 22:26   ` Rafael J. Wysocki
  2013-06-11 23:04     ` Luck, Tony
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2013-06-11 22:26 UTC (permalink / raw)
  To: Chen Gong; +Cc: Wei Yongjun, lenb, tony.luck, yongjun_wei, linux-acpi

On Tuesday, June 04, 2013 10:59:27 PM Chen Gong wrote:
> On Wed, Jun 05, 2013 at 10:17:35AM +0800, Wei Yongjun wrote:
> > Date: Wed, 5 Jun 2013 10:17:35 +0800
> > From: Wei Yongjun <weiyj.lk@gmail.com>
> > To: lenb@kernel.org, rjw@sisk.pl, gong.chen@linux.intel.com,
> >  tony.luck@intel.com
> > Cc: yongjun_wei@trendmicro.com.cn, linux-acpi@vger.kernel.org
> > Subject: [PATCH] ACPI / APEI: fix error return code in einj_init()
> > 
> > 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,
> > 
> OK to me.
> 
> Reviewed-by: Chen Gong <gong.chen@linux.intel.com>

Queued up for 3.11.

Thanks,
Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

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

* RE: [PATCH] ACPI / APEI: fix error return code in einj_init()
  2013-06-11 22:26   ` Rafael J. Wysocki
@ 2013-06-11 23:04     ` Luck, Tony
  2013-06-12 11:13       ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Luck, Tony @ 2013-06-11 23:04 UTC (permalink / raw)
  To: Rafael J. Wysocki, Chen Gong; +Cc: Wei Yongjun, lenb, yongjun_wei, linux-acpi

> Queued up for 3.11.

I'd independently queued this and a couple of other EINJ fixes from Chen Gong
in my RAS tree and tried to tempt Ingo to pull them for 3.11 (since this was the
route that we'd used for EINJ stuff in the past).

If you want them, then please pull what Ingo is ignoring.

Here's the e-mail with the please pull details:

http://marc.info/?l=linux-kernel&m=137062147012973&w=2

-Tony





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

* Re: [PATCH] ACPI / APEI: fix error return code in einj_init()
  2013-06-11 23:04     ` Luck, Tony
@ 2013-06-12 11:13       ` Rafael J. Wysocki
  2013-06-12 13:42         ` Luck, Tony
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2013-06-12 11:13 UTC (permalink / raw)
  To: Luck, Tony; +Cc: Chen Gong, Wei Yongjun, lenb, yongjun_wei, linux-acpi

On Tuesday, June 11, 2013 11:04:51 PM Luck, Tony wrote:
> > Queued up for 3.11.
> 
> I'd independently queued this and a couple of other EINJ fixes from Chen Gong
> in my RAS tree and tried to tempt Ingo to pull them for 3.11 (since this was the
> route that we'd used for EINJ stuff in the past).
> 
> If you want them, then please pull what Ingo is ignoring.
> 
> Here's the e-mail with the please pull details:
> 
> http://marc.info/?l=linux-kernel&m=137062147012973&w=2

Well, as it happens, all of these patches are in my tree as well. :-)

I actually didn't know that there was a separate path to Linus for APEI
material.

Do you want to handle it going forward or do you want me to do that?  Or do
you want me to pull it from you?

Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

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

* RE: [PATCH] ACPI / APEI: fix error return code in einj_init()
  2013-06-12 11:13       ` Rafael J. Wysocki
@ 2013-06-12 13:42         ` Luck, Tony
  2013-06-12 22:51           ` Rafael J. Wysocki
  0 siblings, 1 reply; 7+ messages in thread
From: Luck, Tony @ 2013-06-12 13:42 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Chen Gong, Wei Yongjun, lenb, yongjun_wei, linux-acpi

> Well, as it happens, all of these patches are in my tree as well. :-)

Excellent!

> I actually didn't know that there was a separate path to Linus for APEI
> material.

It's one of the many gray areas ... APEI is clearly part of ACPI, but it is also
all about RAS too.

> Do you want to handle it going forward or do you want me to do that?  Or do
> you want me to pull it from you?

I think I'd like to take them into my tree and then have you pull them
into the ACPI tree.

-Tony

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

* Re: [PATCH] ACPI / APEI: fix error return code in einj_init()
  2013-06-12 13:42         ` Luck, Tony
@ 2013-06-12 22:51           ` Rafael J. Wysocki
  0 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2013-06-12 22:51 UTC (permalink / raw)
  To: Luck, Tony; +Cc: Chen Gong, Wei Yongjun, lenb, yongjun_wei, linux-acpi

On Wednesday, June 12, 2013 01:42:02 PM Luck, Tony wrote:
> > Well, as it happens, all of these patches are in my tree as well. :-)
> 
> Excellent!
> 
> > I actually didn't know that there was a separate path to Linus for APEI
> > material.
> 
> It's one of the many gray areas ... APEI is clearly part of ACPI, but it is also
> all about RAS too.

Yes, it is.

> > Do you want to handle it going forward or do you want me to do that?  Or do
> > you want me to pull it from you?
> 
> I think I'd like to take them into my tree and then have you pull them
> into the ACPI tree.

OK

Going forward I won't pick up any APEI patches from the list unless you tell
me to do that.

Thanks,
Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[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.