]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
linux-yocto/6.18: mtd: use refcount to prevent corruption
authorBruce Ashfield <bruce.ashfield@gmail.com>
Tue, 6 Jan 2026 15:23:52 +0000 (10:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Jan 2026 23:26:06 +0000 (23:26 +0000)
commit4a407d65dd5dce973bc29cac22e7d1d5b60207be
tree75ccceeed6f4c725a1499fe8b8de317e5f29238a
parent3fbe5ee171db49c4cfac3ae8638fce42f05cda61
linux-yocto/6.18: mtd: use refcount to prevent corruption

Integrating the following commit(s) to linux-yocto/6.18:

1/1 [
    Author: Liwei Song
    Email: liwei.song@windriver.com
    Subject: Revert "mtd_blkdevs: add mtd_table_mutex lock back to blktrans_{open, release} to avoid race condition"
    Date: Wed, 24 Dec 2025 15:32:34 +0800

    This reverts commit 957b188b585a4f1f9f3a39198b06a6fd62d6827d.

    The issue that this patch is trying to resolve has been fixed by
    upstream commit 19bfa9ebebb5 ("mtd: use refcount to prevent corruption")
    so this local patch can be reverted, if not, it will cause an unbalanced
    refcnt issue when open/close mtd device.

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/linux-yocto-rt_6.18.bb
meta/recipes-kernel/linux/linux-yocto-tiny_6.18.bb
meta/recipes-kernel/linux/linux-yocto_6.18.bb