diff options
| author | Breno Leitao <leitao@debian.org> | 2026-08-12 09:03:20 -0700 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-12 07:14:22 -1000 |
| commit | 4e0ee51cc2b7a542e5679edaa14aaa82be3b4abb (patch) | |
| tree | 9876593281379cacdd6d337f5dde51e764e76a08 /tools/perf | |
| parent | 1d125f0e6cbd34f6260affac85987201b6899ed0 (diff) | |
workqueue: BUG_ON() instead of returning NULL in wq_node_nr_active()
wq_node_nr_active() warns and returns NULL when @wq is not unbound, but
every caller dereferences the result right away, so the WARN_ON_ONCE()
only moves the oops one frame up, as raised by Tejun.
Fix it by BUGing_ON() instead of this silly WARN_ON_ONCE();
Fixes: b72fdc651056 ("workqueue: account nr_active by the backing pool")
Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions
