]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: ath6kl: fix invalid workqueue flags in ath6kl_usb_create()
authorwuyankun <wuyankun@uniontech.com>
Thu, 11 Jun 2026 01:55:45 +0000 (09:55 +0800)
committerTejun Heo <tj@kernel.org>
Sun, 14 Jun 2026 22:02:09 +0000 (12:02 -1000)
ath6kl_usb_create() currently creates ath6kl_wq with flags set to 0:

  alloc_workqueue("ath6kl_wq", 0, 0)

This triggers a runtime warning in __alloc_workqueue() because the queue is
created with neither WQ_PERCPU nor WQ_UNBOUND set:

  workqueue: ath6kl_wq is using neither WQ_PERCPU or WQ_UNBOUND.
  Setting WQ_PERCPU.

Set WQ_PERCPU explicitly to match the actual execution model and remove the
warning during device probe. No functional change intended.

Fixes: 21c05ca88a54 ("workqueue: Add warnings and ensure one among WQ_PERCPU or WQ_UNBOUND is present")
Reported-by: syzbot+f80c62f371ba6a1e7d79@syzkaller.appspotmail.com
Link: https://lore.kernel.org/all/6a289c01.39669fcc.33b062.00aa.GAE@google.com/T/
Signed-off-by: wuyankun <wuyankun@uniontech.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/net/wireless/ath/ath6kl/usb.c

index 79c18f5ee02bcbdd9c4e8d1ff1b8535d236a6782..945984c3dbe633ae9623577559391cc36d2ff451 100644 (file)
@@ -636,7 +636,7 @@ static struct ath6kl_usb *ath6kl_usb_create(struct usb_interface *interface)
        ar_usb = kzalloc_obj(struct ath6kl_usb);
        if (ar_usb == NULL)
                return NULL;
-       ar_usb->wq = alloc_workqueue("ath6kl_wq", 0, 0);
+       ar_usb->wq = alloc_workqueue("ath6kl_wq", WQ_PERCPU, 0);
        if (!ar_usb->wq) {
                kfree(ar_usb);
                return NULL;