diff options
author | Andreas Herrmann <andreas.herrmann3@amd.com> | 2012-03-23 10:02:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-02 09:27:18 -0700 |
commit | 7d088dca7920bc7c5d74d6c430699abb63ec0151 (patch) | |
tree | d0682054467cac73ef7fbb5f9f2eced5c2efe27c /drivers/hwmon/sis5595.c | |
parent | a714cb9d0897be6e18fbc801a908cab483358946 (diff) |
hwmon: (fam15h_power) Correct sign extension of running_avg_capture
commit fc0900cbda9243957d812cd6b4cc87965f9fe75f upstream.
Wrong bit was used for sign extension which caused wrong end results.
Thanks to Andre for spotting this bug.
Reported-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/sis5595.c')
0 files changed, 0 insertions, 0 deletions