From: Dmitry Torokhov Date: Tue, 28 Oct 2014 16:27:58 +0000 (-0700) Subject: Input: max77693-haptic - fix potential overflow X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~19^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbefc5e7e63228d56963eeb0db10209ea0fafe9d;p=pandora-kernel.git 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 Reviewed-by: Chanwoo Choi Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed