diff options
| author | matteo.cotifava <cotifavamatteo@gmail.com> | 2026-03-10 00:54:11 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-10 01:22:40 +0300 |
| commit | 3c99c9f0ed60582c1c9852b685d78d5d3a50de63 (patch) | |
| tree | f3e5e6ea7f5d37201a5dd017f3e85aef21620747 /include/linux/debugobjects.h | |
| parent | facfdef64d11c08e6f1e69d02a0b87cb74cee0f5 (diff) | |
| download | linux-3c99c9f0ed60582c1c9852b685d78d5d3a50de63.tar.xz | |
ASoC: soc-core: drop delayed_work_pending() check before flush
The delayed_work_pending() check before flush_delayed_work() in
soc_free_pcm_runtime() is unnecessary and racy. flush_delayed_work()
is safe to call unconditionally - it is a no-op when no work is
pending. Remove the check.
The original check was added by commit 9c9b65203492 ("ASoC: core:
only flush inited work during free") but delayed_work_pending()
followed by flush_delayed_work() has a time-of-check/time-of-use
window where work can become pending between the two calls.
Fixes: 9c9b65203492 ("ASoC: core: only flush inited work during free")
Signed-off-by: Matteo Cotifava <cotifavamatteo@gmail.com>
Link: https://patch.msgid.link/20260309215412.545628-2-cotifavamatteo@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
