diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-28 12:27:58 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-31 12:30:44 -0400 |
commit | fbefc5e7e63228d56963eeb0db10209ea0fafe9d (patch) | |
tree | ac7352b6a72cbc78768fd16294c330a57249bd19 /sound | |
parent | 185af4d6668e4805d18d1bdf21dfec89d680fee3 (diff) |
Input: max77693-haptic - fix potential overflow
Expression haptic->pwm_dev->period * haptic->magnitude is of type
'unsigned int' and may overflow. We need to convert one of the operands
to u64 before multiplying, instead of casting result (potentially
overflown) to u64.
Reported by Coverity: CID 1248753
Acked-by : Jaewon Kim <jaewon02.kim@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions