[BLUETOOTH]: put_device before device_del fix
[pandora-kernel.git] / net / bluetooth / hci_sysfs.c
index cef1e3e..cad5103 100644 (file)
@@ -320,6 +320,7 @@ static void del_conn(struct work_struct *work)
 {
        struct hci_conn *conn = container_of(work, struct hci_conn, work);
        device_del(&conn->dev);
+       put_device(&conn->dev);
 }
 
 void hci_conn_del_sysfs(struct hci_conn *conn)