diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 533cf60673a346f4a9a4728f672aa229579b7d79..230a7a8196c075bdcb04b1e65a34f80502014d38 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -4541,9 +4541,9 @@ static int set_device_flags(struct sock *sk, struct hci_dev *hdev, void *data, } } -done: hci_dev_unlock(hdev); +done: if (status == MGMT_STATUS_SUCCESS) device_flags_changed(sk, hdev, &cp->addr.bdaddr, cp->addr.type, supported_flags, current_flags);