Re: [PATCH v2] mtd: mtdswap: remove debugfs stats file on teardown
From: Miquel Raynal
Date: Mon Jun 29 2026 - 11:00:11 EST
On Tue, 23 Jun 2026 09:53:17 +0800, Pengpeng Hou wrote:
> mtdswap_add_debugfs() creates an mtdswap_stats debugfs file under the
> per-MTD debugfs directory, but mtdswap_remove_dev() never removes it
> before freeing the mtdswap_dev.
>
> Store the returned dentry and remove it during device teardown before the
> driver-private state is freed.
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: mtdswap: remove debugfs stats file on teardown
commit: 66fb31358108d10245b9e4ef0eef3e7d9747055e
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl