summaryrefslogtreecommitdiffstats
path: root/block/blk-zoned.c
diff options
context:
space:
mode:
authorBrendan Higgins <brendanhiggins@google.com>2018-09-21 16:30:50 -0700
committerWolfram Sang <wsa@the-dreams.de>2018-09-24 23:50:42 +0200
commit17ccba67109cd0631f206cf49e17986218b47854 (patch)
tree1b8c338ce114a386b8ae0277603631752f850088 /block/blk-zoned.c
parentf8878fadba1e8cfcaadf98d437040d3fe9e2d12c (diff)
downloadlinux-17ccba67109cd0631f206cf49e17986218b47854.tar.bz2
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>
Diffstat (limited to 'block/blk-zoned.c')
0 files changed, 0 insertions, 0 deletions