From: Vadim Zaliva Date: Thu, 11 Mar 2010 07:41:00 +0000 (-0800) Subject: Input: appletouch - fix integer overflow issue X-Git-Tag: v2.6.34-rc2~43^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04b4b88cca0ebe3813b4b6f014fb6a0db380b137;p=pandora-kernel.git Input: appletouch - fix integer overflow issue When reading data from Geyser 2 touchpads used on post Oct 2005 Apple PowerBooks the driver was casting X and Y coordinates values to 'signed char'. Testing on one of such PowerBooks I have noticed that touchpad always generates positive values, but some of them are greater that 127, and thus, when cast to 'signed char' being interpreted as a negative. Such bigger values have been observed infrequently, closer to the edges of a touchpad, so the problem was not very visible. Nevertheless, the patch would potentially improve touchpad driver accuracy. Signed-off-by: Vadim Zaliva Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed