From: Jiang Liu <liuj97@gmail.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Len Brown <lenb@kernel.org>, Huang Ying <ying.huang@intel.com>,
Jiang Liu <jiang.liu@huawei.com>,
linux-acpi@vger.kernel.org
Subject: Re: [RESEND PATCH v3] Fix a copy & paste error in erst.c.
Date: Wed, 07 Mar 2012 22:06:14 +0800 [thread overview]
Message-ID: <4F576B56.9020607@gmail.com> (raw)
In-Reply-To: <CAErSpo4svRTqJcRAUaEwykQ_d1-ONpXW0m9x6aAMM2_i4XF52g@mail.gmail.com>
Thanks, Bjorn.
Will send another version with clear patch description.
On 03/07/2012 12:55 AM, Bjorn Helgaas wrote:
> On Tue, Mar 6, 2012 at 9:29 AM, Jiang Liu <liuj97@gmail.com> wrote:
>> This patch fixes a copy & paste error in erst.c and it applies
>> to v3.3-rc6.
>
> It'd be nice if the subject line gave a hint about what sort of
> problem this patch fixes. It doesn't matter *how* the original error
> was made; it's a question of what behavior we're changing.
>
> Distro and stable kernel maintainers have to decide whether this is
> important enough to be backported, and "fix copy & paste error"
> doesn't tell them anything useful.
>
> Maybe something like:
>
> ACPI, APEI, Fix ERST header length check
>
> This fixes the ERST header length check. Without this patch, we
> mistakenly ignore the ERST table, and hardware errors can't be saved
> in the persistent store.
>
>
>> Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
>> Acked-by: Huang Ying <ying.huang@intel.com>
>> ---
>> drivers/acpi/apei/erst.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
>> index eb9fab5..e4d9d24 100644
>> --- a/drivers/acpi/apei/erst.c
>> +++ b/drivers/acpi/apei/erst.c
>> @@ -917,7 +917,7 @@ static int erst_check_table(struct acpi_table_erst *erst_tab)
>> {
>> if ((erst_tab->header_length !=
>> (sizeof(struct acpi_table_erst) - sizeof(erst_tab->header)))
>> - && (erst_tab->header_length != sizeof(struct acpi_table_einj)))
>> + && (erst_tab->header_length != sizeof(struct acpi_table_erst)))
>> return -EINVAL;
>> if (erst_tab->header.length < sizeof(struct acpi_table_erst))
>> return -EINVAL;
>> --
>> 1.7.5.4
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2012-03-07 14:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 16:29 [RESEND PATCH v3] Fix a copy & paste error in erst.c Jiang Liu
2012-03-06 16:55 ` Bjorn Helgaas
2012-03-07 14:06 ` Jiang Liu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F576B56.9020607@gmail.com \
--to=liuj97@gmail.com \
--cc=bhelgaas@google.com \
--cc=jiang.liu@huawei.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=ying.huang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.