[openwrt/openwrt] Revert "kernel: mtdsplit_uimage: return 0 if not fatal"

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


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

commit 8e6c6928dacc0a41e647e0fecb8966bb2260c3a6
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Thu Nov 20 23:28:44 2025 +0100

    Revert "kernel: mtdsplit_uimage: return 0 if not fatal"
    
    This reverts commit a51359aafde18b7e809842b4b4c31c78f5fa0c51.
    
    Skipping parser for subpartition will be handled now with -ENOENT.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 9bb55fc6b1..29af19f544 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
@@ -201,8 +201,8 @@ static int __mtdsplit_parse_uimage(struct mtd_info *master,
 		ret = mtd_find_rootfs_from(master, uimage_offset + uimage_size,
 					   master->size, &rootfs_offset, &type);
 		if (ret) {
-			pr_info("no rootfs after uImage in \"%s\"\n", master->name);
-			ret = 0;
+			pr_debug("no rootfs after uImage in \"%s\"\n",
+				 master->name);
 			goto err_free_buf;
 		}
 
@@ -215,8 +215,8 @@ static int __mtdsplit_parse_uimage(struct mtd_info *master,
 		/* check rootfs presence at offset 0 */
 		ret = mtd_check_rootfs_magic(master, 0, &type);
 		if (ret) {
-			pr_info("no rootfs before uImage in \"%s\"\n", master->name);
-			ret = 0;
+			pr_debug("no rootfs before uImage in \"%s\"\n",
+				 master->name);
 			goto err_free_buf;
 		}
 




More information about the lede-commits mailing list