Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753367AbXKSK3x (ORCPT ); Mon, 19 Nov 2007 05:29:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751598AbXKSK3m (ORCPT ); Mon, 19 Nov 2007 05:29:42 -0500 Received: from mail.sf-mail.de ([62.27.20.61]:44007 "EHLO mail.sf-mail.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbXKSK3l (ORCPT ); Mon, 19 Nov 2007 05:29:41 -0500 From: Rolf Eike Beer To: Alexey Starikovskiy Subject: Re: [PATCH] Fix segfault when printing battery status Date: Mon, 19 Nov 2007 11:29:26 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Cc: lenb@kernel.org, linux-acpi@vger.kernel.org, astarikovskiy@suse.de, kernel list References: <200711182049.33355.eike-kernel@sf-tec.de> <47415B46.4020709@gmail.com> In-Reply-To: <47415B46.4020709@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2184877.l21UsChA7X"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200711191129.35144.eike-kernel@sf-tec.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1440 Lines: 45 --nextPart2184877.l21UsChA7X Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Alexey Starikovskiy wrote: > Rolf Eike Beer wrote: > > cat > > /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:19/PNP0C0A:00/power_ > >supply/BAT1/status > > > > This leads to a stacktrace as acpi_battery_get_property() returns 0 for a > > case where it does not set val->intval. These value is used as an array > > index in > > drivers/power/power_supply_sysfs.c::power_supply_show_property(). I had a > > situation where the value was 4096 which caused a problem as the array > > only has 5 entries. > > > > Signed-off-by: Rolf Eike Beer > > Rolf, thanks for remainding. Huh? This one is unrelated to the problem I reported two weeks ago... Eike --nextPart2184877.l21UsChA7X Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBHQWWPXKSJPmm5/E4RAgNlAKCHRIwRVuigu0lk2RE97xYYDzBycwCaAui6 TevAlfFcnWQjjycise8vP34= =QEBS -----END PGP SIGNATURE----- --nextPart2184877.l21UsChA7X-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/