diff options
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index ace5e55fe5a3..db7de80b88a2 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -2211,16 +2211,15 @@ int hci_register_dev(struct hci_dev *hdev) | |||
2211 | list_add(&hdev->list, &hci_dev_list); | 2211 | list_add(&hdev->list, &hci_dev_list); |
2212 | write_unlock(&hci_dev_list_lock); | 2212 | write_unlock(&hci_dev_list_lock); |
2213 | 2213 | ||
2214 | hdev->workqueue = alloc_workqueue(hdev->name, WQ_HIGHPRI | WQ_UNBOUND | | 2214 | hdev->workqueue = alloc_workqueue("%s", WQ_HIGHPRI | WQ_UNBOUND | |
2215 | WQ_MEM_RECLAIM, 1); | 2215 | WQ_MEM_RECLAIM, 1, hdev->name); |
2216 | if (!hdev->workqueue) { | 2216 | if (!hdev->workqueue) { |
2217 | error = -ENOMEM; | 2217 | error = -ENOMEM; |
2218 | goto err; | 2218 | goto err; |
2219 | } | 2219 | } |
2220 | 2220 | ||
2221 | hdev->req_workqueue = alloc_workqueue(hdev->name, | 2221 | hdev->req_workqueue = alloc_workqueue("%s", WQ_HIGHPRI | WQ_UNBOUND | |
2222 | WQ_HIGHPRI | WQ_UNBOUND | | 2222 | WQ_MEM_RECLAIM, 1, hdev->name); |
2223 | WQ_MEM_RECLAIM, 1); | ||
2224 | if (!hdev->req_workqueue) { | 2223 | if (!hdev->req_workqueue) { |
2225 | destroy_workqueue(hdev->workqueue); | 2224 | destroy_workqueue(hdev->workqueue); |
2226 | error = -ENOMEM; | 2225 | error = -ENOMEM; |