mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
Fix adapter reference counting in gateway_server_remove
gateway_server_remove should unref the adapter, not ref it.
This commit is contained in:
parent
d48df6f540
commit
a4cb490fe2
@ -932,7 +932,7 @@ static void gateway_server_remove(struct btd_adapter *adapter)
|
||||
adp->hfp_hs_server = NULL;
|
||||
}
|
||||
|
||||
audio_adapter_ref(adp);
|
||||
audio_adapter_unref(adp);
|
||||
}
|
||||
|
||||
static int a2dp_server_probe(struct btd_adapter *adapter)
|
||||
|
Loading…
Reference in New Issue
Block a user