mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
Fix attrib plugin deregistration
As the comparison method used for find what to de-register was wrong, it was causing the btd_device reference that the attrib plugin was keeping never to be dropped.
This commit is contained in:
parent
ba801b05d9
commit
5ffd0e6374
@ -167,7 +167,7 @@ static int gatt_dev_cmp(gconstpointer a, gconstpointer b)
|
||||
const struct gatt_service *gatt = a;
|
||||
const struct btd_device *dev = b;
|
||||
|
||||
return gatt->dev == dev;
|
||||
return gatt->dev != dev;
|
||||
}
|
||||
|
||||
static int characteristic_handle_cmp(gconstpointer a, gconstpointer b)
|
||||
|
Loading…
Reference in New Issue
Block a user