From: Darrick J. Wong Date: Thu, 22 Oct 2009 01:01:37 +0000 (-0700) Subject: acpi-power-meter: Don't leak ACPI error codes to userspace X-Git-Tag: v2.6.32-rc7~65^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22aecebfd9498c4779e5c5bed1d2d054bd99f7a4;p=pandora-kernel.git 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 Acked-by: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- Reading git-diff-tree failed