summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-06-12 06:59:08 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-06-12 06:59:08 +0000
commit66e60595a4625466b18065be80ecaae029a55b55 (patch)
tree7f5d922368280b4f39007fd171be8cdbde5f2b2b /hcid
parentb95353476941aa01b20d52d67fd35ddeba668167 (diff)
Use adapter_find_device instead of adapter_get_device when freeing bonding info
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 6e4b897e..43d89313 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -80,7 +80,7 @@ void bonding_request_free(struct bonding_request_info *bonding)
ba2str(&bonding->bdaddr, address);
- device = adapter_get_device(connection, bonding->adapter, address);
+ device = adapter_find_device(bonding->adapter, address);
if (device && device->agent) {
agent_destroy(device->agent, FALSE);
device->agent = NULL;