diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 64d5c08d..04ebfd39 100644 --- a/src/device.c +++ b/src/device.c @@ -656,6 +656,11 @@ static GSList *device_match_driver(struct btd_device *device, for (uuid = driver->uuids; *uuid; uuid++) { GSList *match; + /* skip duplicated uuids */ + if (g_slist_find_custom(uuids, *uuid, + (GCompareFunc) strcasecmp)) + continue; + /* match profile driver */ match = g_slist_find_custom(profiles, *uuid, (GCompareFunc) strcasecmp); |