Commit: ea793cb9f744cd2942b66385118161b880de958a
Parent: 67ef3ac83752e3705fad55eb25586e1d21e44c2e
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2012-06-26 12:51:47
Tree: 0e8d2d5d4918e4342b8de2dd8225699f9a0fd012

input: Fix not adding watches when io channel is connected This can leave dangling pointers in case one of the channel is never connected which cause -EALREADY to be returned by input_device_set_channel next time the device attempts to connect. For the same reason the code path when acting as client now add the watch as soon as the connection completes instead when both channels are connected.

Diffstat

M input/device.c | 31 ++++++++++++++++++++++++- - - - - - -

1 files changed, 24 insertions(+), 7 deletions(-)

View Full Diff | Patch