diff options
Diffstat (limited to 'net/bluetooth/hci_sysfs.c')
-rw-r--r-- | net/bluetooth/hci_sysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index a05d45eb3ba1..4cc3624bd22d 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c | |||
@@ -99,6 +99,8 @@ static void add_conn(struct work_struct *work) | |||
99 | BT_ERR("Failed to register connection device"); | 99 | BT_ERR("Failed to register connection device"); |
100 | return; | 100 | return; |
101 | } | 101 | } |
102 | |||
103 | hci_dev_hold(hdev); | ||
102 | } | 104 | } |
103 | 105 | ||
104 | /* | 106 | /* |
@@ -134,6 +136,7 @@ static void del_conn(struct work_struct *work) | |||
134 | 136 | ||
135 | device_del(&conn->dev); | 137 | device_del(&conn->dev); |
136 | put_device(&conn->dev); | 138 | put_device(&conn->dev); |
139 | |||
137 | hci_dev_put(hdev); | 140 | hci_dev_put(hdev); |
138 | } | 141 | } |
139 | 142 | ||