aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/cmd640.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2009-10-21 21:01:37 -0400
committerLen Brown <len.brown@intel.com>2009-11-05 12:25:39 -0500
commit22aecebfd9498c4779e5c5bed1d2d054bd99f7a4 (patch)
tree8fbb3ee3c1e49fd8736acd391aaaca350cb27c54 /drivers/ide/cmd640.c
parent52a2b11cafb1b14bacfc65a20966da5ba3a863e1 (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 <djwong@us.ibm.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/ide/cmd640.c')
0 files changed, 0 insertions, 0 deletions