[openwrt/openwrt] kernel: mtdsplit_uimage: use -ENOENT instead of -ENODEV

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 20 14:42:29 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/d21262edcfa22f468ca3ac94e8cdab3d411f0916

commit d21262edcfa22f468ca3ac94e8cdab3d411f0916
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Thu Nov 20 23:30:32 2025 +0100

    kernel: mtdsplit_uimage: use -ENOENT instead of -ENODEV
    
    New linux version will check the return code of parser on subpartitions.
    The only valid case for skipping a parser with an error is -ENOENT.
    
    Change the relevant entry to -ENOENT.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
index 29af19f544..fe824cbda6 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
@@ -217,6 +217,7 @@ static int __mtdsplit_parse_uimage(struct mtd_info *master,
 		if (ret) {
 			pr_debug("no rootfs before uImage in \"%s\"\n",
 				 master->name);
+			ret = -ENOENT;
 			goto err_free_buf;
 		}
 




More information about the lede-commits mailing list