diff options
| author | Thierry Reding <[email protected]> | 2017-04-12 16:29:23 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2017-04-13 15:34:54 +0000 |
| commit | 6db78b201b3fa3611b9557f0d677cd4560358f9d (patch) | |
| tree | 6a8601d0f02f647d29193005f8bd715f3c3922f8 /lib/dma-debug.c | |
| parent | pwm: tegra: Add support to configure pin state in suspends/resume (diff) | |
| download | kernel-6db78b201b3fa3611b9557f0d677cd4560358f9d.tar.gz kernel-6db78b201b3fa3611b9557f0d677cd4560358f9d.zip | |
pwm: tegra: Avoid potential overflow for short periods
For very short periods, the result of the division might overflow the
unsigned long hz variable (on 32-bit architectures). Avoid that by
making it an unsigned long long. While at it, also remove an unneeded
local variable whose only purpose is to store a temporary computation.
Acked-by: Laxman Dewangan <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
