From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753466Ab0LUHXQ (ORCPT ); Tue, 21 Dec 2010 02:23:16 -0500 Received: from mail.skyhub.de ([78.46.96.112]:38602 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549Ab0LUHXO (ORCPT ); Tue, 21 Dec 2010 02:23:14 -0500 Date: Tue, 21 Dec 2010 08:23:09 +0100 From: Borislav Petkov To: Seblu Cc: Zhang Rui , "Brown, Len" , lkml Subject: Re: [PATCH] ACPI battery: Fix sysfs oops when removing battery Message-ID: <20101221072309.GA32278@liondog.tnic> Mail-Followup-To: Borislav Petkov , Seblu , Zhang Rui , "Brown, Len" , lkml References: <20101219130001.GB5790@liondog.tnic> <1292896861.2300.288.camel@rui> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 21, 2010 at 04:24:26AM +0100, Seblu wrote: > On Tue, Dec 21, 2010 at 3:01 AM, Zhang Rui 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.