Parent: 231ac1cab96dadd32d46430ee1d9f8a930f5a6bd
Author: Szymon Janc <szymon.janc@gmail.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-01-09 17:55:06
Tree: ed133e97d86207d1dfe8b5d71dec70530e24f827
input: Fix crash on authorization reply with first sixaxis connection Bogus unref in sixaxis_sdp_cb was resulting in NULL pointer dereference when auth_callback was called. src/adapter.c:connected_callback() hci0 device 00:06:F7:57:08:9E connected eir_len 5 src/device.c:device_set_class() /org/bluez/hci0/dev_00_06_F7_57_08_9E 0x000508 profiles/input/server.c:connect_event_cb() Incoming connection from 00:06:F7:57:08:9E on PSM 17 profiles/input/device.c:input_device_set_channel() idev (nil) psm 17 profiles/input/server.c:confirm_event_cb() src/agent.c:agent_ref() 0x8117eb8: ref=2 src/agent.c:agent_authorize_service() authorize service request was sent for /org/bluez/hci0/dev_00_06_F7_57_08_9E src/device.c:device_probe_profiles() Probing profiles for device 00:06:F7:57:08:9E profiles/input/device.c:input_device_register() /org/bluez/hci0/dev_00_06_F7_57_08_9E src/service.c:btd_service_ref() 0x811f580: ref=2 src/service.c:change_state() 0x811f580: device 00:06:F7:57:08:9E profile input-hid state changed: unavailable -> disconnected (0) src/device.c:device_svc_resolved() /org/bluez/hci0/dev_00_06_F7_57_08_9E err 0 profiles/input/server.c:sixaxis_sdp_cb() err 0 (Success) profiles/input/device.c:input_device_set_channel() idev 0x8118568 psm 17 profiles/input/server.c:connect_event_cb() Incoming connection from 00:06:F7:57:08:9E on PSM 19 profiles/input/device.c:input_device_set_channel() idev 0x8118568 psm 19 src/service.c:change_state() 0x811f580: device 00:06:F7:57:08:9E profile input-hid state changed: disconnected -> connected (0) sixaxis: compatible device connected: PLAYSTATION(R)3 Controller (054C:0268) plugins/sixaxis.c:setup_leds() number 2 sixaxis: failed to set LEDS (0 bytes written) src/agent.c:agent_ref() 0x8117eb8: ref=3 Program received signal SIGSEGV, Segmentation fault.
Diffstat
| M | profiles/input/server.c | | | 28 | ++- - - - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 2 insertions(+), 26 deletions(-)