Re: [PATCH] ACPI battery: Fix sysfs oops when removing battery

From: Borislav Petkov
Date: Tue Dec 21 2010 - 02:23:28 EST


On Tue, Dec 21, 2010 at 04:24:26AM +0100, Seblu wrote:
> On Tue, Dec 21, 2010 at 3:01 AM, Zhang Rui <rui.zhang@xxxxxxxxx> wrote:
> > On Sun, 2010-12-19 at 21:00 +0800, Borislav Petkov wrote:
> >> Hi guys,
> >>
> >> I get the oops below on 37-rc6. Here's a possible fix:
> >>
> > does this happen every time when you unload the battery driver?
> >
> on my laptop (dell e6410), with 4 tests, this append every times.

Yes, it happens every time here too. The explanation for that is simple:
according to the oops, this is on the path of acpi_ev_notify_dispatch()
which looks like it handles ACPI events and since removing the battery
or changing of the power supply or similar is one such event, we do a
state update.

--
Regards/Gruss,
Boris.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/