diff options
| author | Hongyan Xu <getshell@seu.edu.cn> | 2026-09-28 21:40:54 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-04 23:08:53 +0200 |
| commit | 9a773d9d21fa909e8babbe11e93c811cf1a6d22d (patch) | |
| tree | 7df71ce253014db5288aad591ab601bfea312547 /tools/lib/python/kdoc/python_version.py | |
| parent | 80ffb82a72d80b4a633621dfc45c7cd233a2fe8c (diff) | |
ASoC: mt6359-accdet: manage private workqueues with devres
The threaded jack-detect interrupts queue work on two private
workqueues. Neither queue is destroyed on device removal, so queued
callbacks can retain pointers to devm-allocated state after it is
released. Probe error paths also leak the queues.
Create and initialize both workqueues before requesting interrupts, then
add a managed cleanup action. Since the managed IRQs are acquired
afterwards, devres releases and synchronizes them before draining and
destroying the workqueues on both removal and probe failure.
Fixes: eef07b9e0925 ("ASoC: mediatek: mt6359: add MT6359 accdet jack driver")
Signed-off-by: Hongyan Xu <getshell@seu.edu.cn>
Link: https://patch.msgid.link/20260928134054.312-1-getshell@seu.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
