Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1459603
| From | Baoquan He <bhe@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries |
| Date | 2016-08-10 21:10 +0200 |
| Message-ID | <s4H36-I0-89@gated-at.bofh.it> (permalink) |
| References | <s41Qd-7Ui-11@gated-at.bofh.it> <s41Qd-7Ui-9@gated-at.bofh.it> <s4GTp-n4-55@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/10/16 at 02:53pm, Ingo Molnar wrote:
>
> * Baoquan He <bhe@redhat.com> wrote:
>
> > It won't impact the result, we still should fix the code bug.
> >
> > Signed-off-by: Baoquan He <bhe@redhat.com>
> > Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> > Cc: Len Brown <len.brown@intel.com>
> > Cc: Pavel Machek <pavel@ucw.cz>
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Ingo Molnar <mingo@redhat.com>
> > Cc: "H. Peter Anvin" <hpa@zytor.com>
> > Cc: x86@kernel.org
> > Cc: linux-pm@vger.kernel.org
> > ---
> > arch/x86/kernel/acpi/boot.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
> > index 90d84c3..2b25d3f 100644
> > --- a/arch/x86/kernel/acpi/boot.c
> > +++ b/arch/x86/kernel/acpi/boot.c
> > @@ -1031,8 +1031,8 @@ static int __init acpi_parse_madt_lapic_entries(void)
> > return ret;
> > }
> >
> > - x2count = madt_proc[0].count;
> > - count = madt_proc[1].count;
> > + count = madt_proc[0].count;
> > + x2count = madt_proc[1].count;
> > }
> > if (!count && !x2count) {
~~~~~~~~~~~~~~~~~~~~~
I mean here the value checking won't be impacted by the wrong
assignment.
> > printk(KERN_ERR PREFIX "No LAPIC entries present\n");
>
> Why does this bug have no effect?
>
> Thanks,
>
> Ingo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries Baoquan He <bhe@redhat.com> - 2016-08-09 01:10 +0200
Re: [PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries Ingo Molnar <mingo@kernel.org> - 2016-08-10 21:00 +0200
Re: [PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries Baoquan He <bhe@redhat.com> - 2016-08-10 21:10 +0200
Re: [PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries Ingo Molnar <mingo@kernel.org> - 2016-08-11 10:50 +0200
Re: [PATCH 2/2] x86, ACPI: Fix the wrong assignment when Handle apic/x2apic entries Baoquan He <bhe@redhat.com> - 2016-08-11 16:30 +0200
csiph-web