Parent: 5de25e03f52a835330169e6cb2c215fc3fabb3c3
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-01-03 18:11:44
Tree: 6364125ec96daa9b3080728a66fa6316afec6084
input: Fix closing sockets when ioctl_connadd() fails Instead of calling close() directly, properly shutdown the channel and set GIOChannel pointers to NULL. Fixes this error detected when HIDP support is disabled on kernel and we attempt to connect to a BT keyboard: bluetoothd[5168]: profiles/input/device.c:encrypt_notify() bluetoothd[5168]: ioctl_connadd(): Protocol not supported(93) bluetoothd[5168]: profiles/input/device.c:ctrl_watch_cb() Device CA:FE:CA:FE:CA:FE disconnected (bluetoothd:5168): GLib-WARNING **: Invalid file descriptor. bluetoothd[5168]: profiles/input/device.c:intr_watch_cb() Device CA:FE:CA:FE:CA:FE disconnected (bluetoothd:5168): GLib-WARNING **: Invalid file descriptor.
Diffstat
| M | profiles/input/device.c | | | 26 | ++++++++++++++++++++- - - - - - |
1 files changed, 20 insertions(+), 6 deletions(-)