diff options
| author | 2026-06-23 09:53:17 +0800 | |
|---|---|---|
| committer | 2026-06-29 16:52:26 +0200 | |
| commit | 66fb31358108d10245b9e4ef0eef3e7d9747055e (patch) | |
| tree | 31b942deb4320b7f4eb10608cb0473a519842cf1 /scripts/Makefile.thinlto | |
| parent | mtd: mtdpart: validate partition bounds in mtd_add_partition() (diff) | |
mtd: mtdswap: remove debugfs stats file on teardown
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.
Fixes: a32159024620 ("mtd: Add mtdswap block driver")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
