[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <216309.52558.qm@web50108.mail.re2.yahoo.com>
Date: Wed, 15 Sep 2010 14:20:05 -0700 (PDT)
From: Doug Thompson <norsk5@...oo.com>
To: Mauro Carvalho Chehab <mchehab@...hat.com>,
Marcin Slusarz <marcin.slusarz@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>, linux-edac@...r.kernel.org
Subject: Re: [PATCH] i7core_edac: fix panic in udimm sysfs attributes registration
--- On Tue, 9/14/10, Marcin Slusarz <marcin.slusarz@...il.com> wrote:
> From: Marcin Slusarz <marcin.slusarz@...il.com>
> Subject: [PATCH] i7core_edac: fix panic in udimm sysfs attributes registration
> To: "Mauro Carvalho Chehab" <mchehab@...hat.com>
> Cc: "LKML" <linux-kernel@...r.kernel.org>, linux-edac@...r.kernel.org
> Date: Tuesday, September 14, 2010, 10:26 AM
> Array of udimm sysfs attributes was
> not ended with NULL marker.
>
> EDAC DEBUG: edac_create_mci_instance_attributes:
> edac_create_mci_instance_attributes() file udimm0
> EDAC DEBUG: edac_create_mci_instance_attributes:
> edac_create_mci_instance_attributes() file udimm1
> EDAC DEBUG: edac_create_mci_instance_attributes:
> edac_create_mci_instance_attributes() file udimm2
> BUG: unable to handle kernel NULL pointer dereference at
> 00000000000001a4
> IP: [<ffffffff81330b36>]
> edac_create_mci_instance_attributes+0x148/0x1f1
> PGD 0
> Oops: 0000 [#1] PREEMPT SMP
> last sysfs file:
> CPU 3
> Modules linked in:
>
> Kernel panic - not syncing: Attempted to kill init!
>
> Signed-off-by: Marcin Slusarz <marcin.slusarz@...il.com>
> Cc: stable@...nel.org
> Cc: Mauro Carvalho Chehab <mchehab@...hat.com>
Acked-by: Doug Thompson <dougthompson@...ssion.com>
> ---
> drivers/edac/i7core_edac.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/edac/i7core_edac.c
> b/drivers/edac/i7core_edac.c
> index e0187d1..0fd5b85 100644
> --- a/drivers/edac/i7core_edac.c
> +++ b/drivers/edac/i7core_edac.c
> @@ -1140,6 +1140,7 @@ static struct mcidev_sysfs_attribute
> i7core_udimm_counters_attrs[] = {
> ATTR_COUNTER(0),
> ATTR_COUNTER(1),
> ATTR_COUNTER(2),
> + { .attr = { .name = NULL } }
> };
>
> static struct mcidev_sysfs_group i7core_udimm_counters =
> {
> --
> 1.7.2.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists