summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sysfs.c
diff options
context:
space:
mode:
authorDave Young <hidave.darkstar@gmail.com>2007-12-29 19:17:47 -0800
committerDavid S. Miller <davem@davemloft.net>2007-12-29 19:17:47 -0800
commit38b7da09cfdb2202f08476d6fb22a47649a177ec (patch)
tree1f83cbc232b36282d7ed94104d8ae47fe9c55756 /net/bluetooth/hci_sysfs.c
parent2072c228c9a05c004a230620196da7607cdcc5b6 (diff)
downloadop-kernel-dev-38b7da09cfdb2202f08476d6fb22a47649a177ec.zip
op-kernel-dev-38b7da09cfdb2202f08476d6fb22a47649a177ec.tar.gz
[BLUETOOTH]: put_device before device_del fix
Because of workqueue delay, the put_device could be called before device_del, so move it to del_conn. Signed-off-by: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/hci_sysfs.c')
-rw-r--r--net/bluetooth/hci_sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index cef1e3e..cad5103 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -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)
OpenPOWER on IntegriCloud