aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/symbols.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2017-01-28 17:10:39 +0200
committerThierry Reding <[email protected]>2017-01-30 08:13:19 +0100
commit684309e5043efaaa94d9b4e65f53f7fdde1f6675 (patch)
tree8f25bbc38fbe2e2c2ecb2c3f8b11aca68404853b /scripts/gdb/linux/symbols.py
parent8d254a340efb12b40c4c1ff25a48a4f48f7bbd6b (diff)
pwm: lpss: Avoid potential overflow of base_unit
The resolution of base_unit is derived from base_unit_bits and thus must be equal to (2^base_unit_bits - 1). Otherwise frequency and therefore base_unit might potentially overflow. Prevent the above by substracting 1 in all cases where base_unit_bits or derivative is used. Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions