diff options
author | Brendan Higgins <[email protected]> | 2018-09-21 16:30:50 -0700 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2018-09-24 23:50:42 +0200 |
commit | 17ccba67109cd0631f206cf49e17986218b47854 (patch) | |
tree | 1b8c338ce114a386b8ae0277603631752f850088 /net/lapb/lapb_in.c | |
parent | f8878fadba1e8cfcaadf98d437040d3fe9e2d12c (diff) |
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 <[email protected]>
Reviewed-by: Jae Hyun Yoo <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions