From: Palmer Cox
Date: Tue, 27 Nov 2012 12:17:45 +0000 (+0100) Subject: cpupower tools: Fix issues with sysfs_topology_read_file X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~88^2~7^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d2000ebe0618219f73ac866701533237180044;p=pandora-kernel.git cpupower tools: Fix issues with sysfs_topology_read_file Fix a variety of issues with sysfs_topology_read_file: * The return value of sysfs_topology_read_file function was not properly being checked for failure. * The function was reading int valued sysfs variables and then returning their value. So, even if a function was trying to check the return value of this function, a caller would not be able to tell an failure code apart from reading a negative value. This also conflicted with the comment on the function which said that a return value of 0 indicated success. * The function was parsing int valued sysfs values with strtoul instead of strtol. * The function was non-static even though it was only used in the file it was declared in. Signed-off-by: Palmer Cox
Signed-off-by: Thomas Renninger