summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-17 10:25:50 +0000
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-09-25 15:40:54 +0200
commit62ee3da38f41bef83c1cf250f6816a0ee187674b (patch)
treea98242309663da7625c3d7480c2a1cfa0f9582f8 /scripts/Makefile.thinlto
parente6ca524ee5b2705be30ea19ce2e55122d9f9ed8f (diff)
downloadlinux-62ee3da38f41bef83c1cf250f6816a0ee187674b.tar.gz
linux-62ee3da38f41bef83c1cf250f6816a0ee187674b.zip
mtd: mtdsuper: Fix MTD device reference leak in mtd_get_sb()
mtd_get_sb() is called with a reference to the MTD device already taken by the caller. When sget_dev() fails, the function returns the error without dropping that reference, so the device is never released and its refcount never reaches zero. Every mount attempt on an MTD device whose superblock cannot be set up leaks a reference. Restore the put_mtd_device() that the fs_context conversion dropped on this path. Fixes: 0f071004109d ("mtd: Provide fs_context-aware mount_mtd() replacement") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang <vulab@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