Input: evdev - fix variable initialisation
authorHeiko Stuebner <heiko@sntech.de>
Wed, 1 Feb 2012 18:33:01 +0000 (10:33 -0800)
committerDima Zavin <dima@android.com>
Wed, 1 Feb 2012 18:57:42 +0000 (10:57 -0800)
commit1f8c5cecfe44994cd617ba2803f41fb56d53e91c
tree90b08724cdd825d06bee885c4aa48f4c4386400e
parent4dc43d7079bdae572212368e1d29abea0177c932
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>
drivers/input/evdev.c