]> git.baikalelectronics.ru Git - kernel.git/commit
Input: evdev - fix variable initialisation
authorHeiko Stübner <heiko@sntech.de>
Wed, 1 Feb 2012 17:12:23 +0000 (09:12 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Feb 2012 17:12:54 +0000 (09:12 -0800)
commite208c3c277544235822c353b6a18c7aa23ac3150
tree23383d1b35459bfd26bfd3d8815b80255ed36fc9
parentab940c3b55502af6bd92a50dfba39d852c3f0c8b
Input: evdev - fix variable initialisation

Commit d9e8a8376de4 (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