diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-07 15:57:36 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-31 00:06:12 +0400 |
commit | 344e222edf486bf42da1ced137e36df7a345b0ad (patch) | |
tree | 6999f131dc4ac8b6a022ffb5b127c4eb0421cb7b /include | |
parent | c264c651fd318274ffe27219947f17f24f07c073 (diff) | |
download | linux-344e222edf486bf42da1ced137e36df7a345b0ad.tar.xz |
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 <dan.carpenter@oracle.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions