commit | 22aecebfd9498c4779e5c5bed1d2d054bd99f7a4 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <[email protected]> | Wed Oct 21 18:01:37 2009 -0700 |
committer | Len Brown <[email protected]> | Thu Nov 05 12:25:39 2009 -0500 |
tree | 8fbb3ee3c1e49fd8736acd391aaaca350cb27c54 | |
parent | 52a2b11cafb1b14bacfc65a20966da5ba3a863e1 [diff] |
acpi-power-meter: Don't leak ACPI error codes to userspace If the ACPI methods return an error code, we must return -EINVAL to userspace to flag the error. Right now we pass the (positive) number right through, which causes echo to keep writing bogus values. Signed-off-by: Darrick J. Wong <[email protected]> Acked-by: Jean Delvare <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>