aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorVadim Zaliva <[email protected]>2010-03-11 07:41:00 +0000
committerDmitry Torokhov <[email protected]>2010-03-11 08:00:56 +0000
commit04b4b88cca0ebe3813b4b6f014fb6a0db380b137 (patch)
treee433748561def86a9568b3adb988b5a187e79ee5 /drivers/mtd/lpddr/lpddr_cmds.c
parentInput: ad7877 - increase pen up imeout (diff)
downloadkernel-04b4b88cca0ebe3813b4b6f014fb6a0db380b137.tar.gz
kernel-04b4b88cca0ebe3813b4b6f014fb6a0db380b137.zip
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions