commit | fbefc5e7e63228d56963eeb0db10209ea0fafe9d | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Tue Oct 28 09:27:58 2014 -0700 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Fri Oct 31 09:30:44 2014 -0700 |
tree | ac7352b6a72cbc78768fd16294c330a57249bd19 | |
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>