]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
Input: evdev - fix variable initialisation
authorHeiko Stübner <heiko@sntech.de>
Thu, 9 Feb 2012 07:08:48 +0000 (23:08 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 24 Feb 2012 08:52:43 +0000 (00:52 -0800)
commit02dfc496800dfaf17b650256642f3df86653fe97
treef706f8e345f104c8982f537a62233fd582563faf
parent68513a4c5fe68938350cf2c56d97946e49f014e1
Input: evdev - fix variable initialisation

Commit 509f87c5f564 (evdev - do not block waiting for an event if fd
is nonblock) created a code path were it was possible to use retval
uninitialized.

This could lead to the xorg evdev input driver getting corrupt data
and refusing to work with log messages like
AUO-Pixcir touchscreen: Read error: Success
sg060_keys: Read error: Success
AUO-Pixcir touchscreen: Read error: Success
sg060_keys: Read error: Success
(for drivers auo-pixcir-ts and gpio-keys).

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Dima Zavin <dima@android.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c