aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-07-07 18:17:54 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-07-07 18:20:12 -0700
commit9a932145f2d57bad1092ba006dee9065adc5eb39 (patch)
tree0ca660b7e0dc96f2d917a860351c5b94782840eb /drivers/input/keyboard
parentInput: synaptics - print firmware ID and board number at init (diff)
downloadlinux-dev-9a932145f2d57bad1092ba006dee9065adc5eb39.tar.xz
linux-dev-9a932145f2d57bad1092ba006dee9065adc5eb39.zip
Input: ff-memless - fix a couple min_t() casts
envelope->attack_level is a u16 type. We're trying to clamp it here so it's between 0 and 0x7fff. Unfortunately, the cast to __s16 turns all the values larger than 0x7fff into negative numbers and min_t() thinks they are less than 0x7fff. envelope_level is an int so now we've got negative values stored there. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard')
0 files changed, 0 insertions, 0 deletions