aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2012-03-07 11:57:36 +0000
committerLen Brown <[email protected]>2012-03-30 20:06:12 +0000
commit344e222edf486bf42da1ced137e36df7a345b0ad (patch)
tree6999f131dc4ac8b6a022ffb5b127c4eb0421cb7b /lib/string_helpers.c
parentDisable MCP limit exceeded messages from Intel IPS driver (diff)
downloadkernel-344e222edf486bf42da1ced137e36df7a345b0ad.tar.gz
kernel-344e222edf486bf42da1ced137e36df7a345b0ad.zip
ACPI throttling: fix endian bug in acpi_read_throttling_status()
Using a u64 here creates an endian bug. We store a u32 number in the top byte which is a larger number than intended on big endian systems. There is no reason to use a 64 bit data type here, I guess it was just an oversight. I removed the initialization to zero as well. It's needed with a u64 but with a u32, the variable gets initialized properly inside the call to acpi_os_read_port(). Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions