summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorBrendan Higgins <brendanhiggins@google.com>2018-09-22 02:30:50 +0300
committerJoel Stanley <joel@jms.id.au>2018-10-22 02:09:33 +0300
commitd769a1aa14d3d0e380151048b94aeb6919ace533 (patch)
treecf28482283c256546f4f27933e4d2766d7e7d24d /scripts/gdb/linux/utils.py
parent6c51cbcf7475a7cfe7a5178b922150f19ff619e3 (diff)
downloadlinux-d769a1aa14d3d0e380151048b94aeb6919ace533.tar.xz
i2c: aspeed: fix invalid clock parameters for very large divisors
The function that computes clock parameters from divisors did not respect the maximum size of the bitfields that the parameters were written to. This fixes the bug. This bug can be reproduced with (and this fix verified with) the test at: https://kunit-review.googlesource.com/c/linux/+/1035/ Discovered-by-KUnit: https://kunit-review.googlesource.com/c/linux/+/1035/ Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Reviewed-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> (cherry picked from commit 17ccba67109cd0631f206cf49e17986218b47854) Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions