]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: fix defuzzing logic
authorDmitry Torokhov <dtor@chromium.org>
Sat, 19 Jul 2014 23:30:31 +0000 (16:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 19:44:07 +0000 (12:44 -0700)
commit3eda80beb6cd0baece58a14d835dafbb3fec727b
treea8cb546c6a2e6b18df70b918632a319d13441359
parent23acaf08539184cccb1d15e177f2e0a068706112
Input: fix defuzzing logic

commit 50c5d36dab930b1f1b1e3348b8608aa8b9ee7610 upstream.

We attempt to remove noise from coordinates reported by devices in
input_handle_abs_event(), unfortunately, unless we were dropping the
event altogether, we were ignoring the adjusted value and were passing
on the original value instead.

Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/input.c