mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-08 12:33:40 +08:00
Fix clearing svc_cache before the adapter is up
This commit is contained in:
parent
302eee8269
commit
6153b626c1
@ -2269,7 +2269,8 @@ int adapter_update(struct btd_adapter *adapter, uint8_t new_svc)
|
||||
return 0;
|
||||
|
||||
if (!adapter->up) {
|
||||
adapter->svc_cache = new_svc;
|
||||
if (new_svc)
|
||||
adapter->svc_cache = new_svc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user