mm/damon/sysfs: link DAMON for virtual address spaces monitoring
[linux-2.6-microblaze.git] / net / bluetooth / mgmt.c
index 533cf60..230a7a8 100644 (file)
@@ -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);