Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2007 07:51:46 +0000 (UTC)
From:      Nate Lawson <njl@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/acpica acpi_battery.c
Message-ID:  <200710090751.l997pkJM044469@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

njl         2007-10-09 07:51:46 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi_battery.c 
  Log:
  When the EC times out (common with Compaqs), it may report a design
  voltage of 0.  This can result in a divide by zero trap.  Add a guard
  for this case.  The value of lfcap is checked in acpi_battery_bif_valid()
  just before this, so it is safe.
  
  Reportd by:     sam
  Approved by:    re
  MFC after:      3 days
  
  Revision  Changes    Path
  1.25      +4 -2      src/sys/dev/acpica/acpi_battery.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710090751.l997pkJM044469>