diff options
| author | Yifei Gao <gyf161023@gmail.com> | 2026-08-04 21:34:56 +0000 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-09-02 18:08:42 +0200 |
| commit | 90af7fde083e1b22c349c3a8b1626728e44e474c (patch) | |
| tree | f202a7ff60911456f6be199444f7d36071166a55 /scripts/Makefile.thinlto | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| download | linux-next-90af7fde083e1b22c349c3a8b1626728e44e474c.tar.gz linux-next-90af7fde083e1b22c349c3a8b1626728e44e474c.zip | |
memstick: ms_block: destroy io_queue workqueue on removal
msb_init_disk() creates the per-card ordered workqueue msb->io_queue with
alloc_ordered_workqueue(). It is torn down with destroy_workqueue() only
on the init error path; msb_remove() never destroys it. msb_stop() merely
flushes the queue, and neither msb_data_clear() nor put_disk() free it. As
a result every card insert/remove cycle leaks the workqueue and its
kworker, exhausting kernel memory over repeated cycles.
Destroy the workqueue in msb_remove() after the disk has been removed and
the queue drained.
Fixes: 0ab30494bc4f ("memstick: add support for legacy memorysticks")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Yifei Gao <gyf161023@gmail.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
