linux: sanitise ACPI battery data
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 24 Oct 2012 13:07:34 +0000 (15:07 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 24 Oct 2012 13:23:07 +0000 (15:23 +0200)
commit545269ae0ef5aeb17289f4b5efa26427f7b28b6b
treec071eac616a213524b7c2937ef955c133af00935
parent351a64a5530d732046455ba70baecb3ea416e1cc
linux: sanitise ACPI battery data

Coverity:
CID 739695 (#1 of 1): Use of untrusted scalar value (TAINTED_SCALAR)
At (23): Using tainted variable "bat_max" as the divisor in
         "bat_val * 100 / bat_max".

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/linux/apm.c