[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurence Version] N/A
[Problem] When HID deactived, crash occured
[Cause & Measure] Access the invalid memory
[Checking Method] Check the validation of variable.
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: Ifd88e39c98cccb29f3b4eaad23b1fa53b669da47
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
if (g_strcmp0(profile->local_uuid , HID_DEVICE_UUID) == 0) {
l = find_service_with_uuid(device->services,
HID_DEVICE_UUID);
+ if (l == NULL)
+ return;
+
service = l->data;
if (btd_service_get_state(service) ==