From: Marcel Holtmann <redacted>
Date: Wed, 5 Mar 2008 09:48:29 +0100
quoted
@@ -902,8 +902,6 @@ int hci_unregister_dev(struct hci_dev *h
BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type);
- hci_unregister_sysfs(hdev);
-
write_lock_bh(&hci_dev_list_lock);
list_del(&hdev->list);
write_unlock_bh(&hci_dev_list_lock);@@ -915,6 +913,8 @@ int hci_unregister_dev(struct hci_dev *h
hci_notify(hdev, HCI_DEV_UNREG);
+ hci_unregister_sysfs(hdev);
+
__hci_dev_put(hdev);
I never got a chance to test this one in a proper way, but from a
logic point of view it makes sense and thus it is acked by me. I also
trust Stefan that he fully tested it.
Also applied to net-2.6
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html