Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce162bfb authored by Johannes Berg's avatar Johannes Berg
Browse files

mac80211_hwsim: don't use WQ_MEM_RECLAIM



We're obviously not part of a memory reclaim path, so don't set the flag.

This also causes a warning in check_flush_dependency() since we end up
in a code path that flushes a non-reclaim workqueue, and we shouldn't do
that if we were really part of reclaim.

Reported-by: default avatar <syzbot+41cdaf4232c50e658934@syzkaller.appspotmail.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent bee92d06
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3455,7 +3455,7 @@ static int __init init_mac80211_hwsim(void)

	spin_lock_init(&hwsim_radio_lock);

	hwsim_wq = alloc_workqueue("hwsim_wq",WQ_MEM_RECLAIM,0);
	hwsim_wq = alloc_workqueue("hwsim_wq", 0, 0);
	if (!hwsim_wq)
		return -ENOMEM;