diff options
author | njl <njl@FreeBSD.org> | 2007-10-09 07:51:46 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2007-10-09 07:51:46 +0000 |
commit | 8e21b1f738e3a7d52ec50aa5730787013a76a4d5 (patch) | |
tree | 2873564f13ec9f2f3ee34ad2efb29619414159a6 /lib/libpthread/sys/thr_error.c | |
parent | 8232e57ef030a255ea897c975899b89dd23e5b19 (diff) | |
download | FreeBSD-src-8e21b1f738e3a7d52ec50aa5730787013a76a4d5.zip FreeBSD-src-8e21b1f738e3a7d52ec50aa5730787013a76a4d5.tar.gz |
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
Diffstat (limited to 'lib/libpthread/sys/thr_error.c')
0 files changed, 0 insertions, 0 deletions