kernel: mtdsplit_uimage: use -ENOENT instead of -ENODEV
authorChristian Marangi <[email protected]>
Thu, 20 Nov 2025 22:30:32 +0000 (23:30 +0100)
committerChristian Marangi <[email protected]>
Thu, 20 Nov 2025 22:42:11 +0000 (23:42 +0100)
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 <[email protected]>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c

index 29af19f5441c4818efdcacb6b4eb74d766322d2a..fe824cbda60ccc869563b95ee748f8088e4eaabf 100644 (file)
@@ -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;
                }