]> asedeno.scripts.mit.edu Git - linux.git/commit
PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out
authorDmitry Osipenko <digetx@gmail.com>
Mon, 4 Nov 2019 21:56:03 +0000 (00:56 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 6 Nov 2019 03:04:00 +0000 (12:04 +0900)
commit53b4b2aeee26f42cde5ff2a16dd0d8590c51a55a
tree40b91231a847cdcd8a4b5c5796eca7e83fc3dc6e
parente7955a34a2344b5a237aabd4d8a43e30c3183b79
PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out

There is another kHz-conversion bug in the code, resulting in integer
overflow. Although, this time the resulting value is 4294966296 and it's
close to ULONG_MAX, which is okay in this case.

Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Peter Geis <pgwipeout@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/tegra30-devfreq.c