cvs commit: src/sys/dev/acpica acpi_battery.c

Nate Lawson njl at FreeBSD.org
Tue Oct 9 00:51:46 PDT 2007


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


More information about the cvs-all mailing list