Diff between 0f849abb1b090257370225a0d6bfa4b2d4871ca5 and cb53d86be62e61d4de615fda6453f96015abb837
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -1 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index faf07ba..b29aa19 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4624,8 +4624,11 @@ static struct btd_service *probe_service(struct btd_device *device,
return NULL;
l = find_service_with_profile(device->services, profile);
+ /* If the service already exists, return NULL so that it won't be added
+ * to the device->services.
+ */
if (l)
- return l->data;
+ return NULL;
service = service_create(device, profile);