openwrt-6.x/target/linux/generic
John Thomson ade045084b kernel: mtdsplit_minor: return 0 if not fatal
Introduced with Linux 6.7, in commit:
5c2f7727d437 ("mtd: mtdpart: check for subpartitions parsing result"),
when a parser returns an error, this will be passed up, and
consequently, all parent mtd partitions get torn down.

Adjust the MiNOR mtdsplit driver to only return an error if there is a
critical problem in reading from the mtd device or allocating memory.
Otherwise return 0 to indicate that no partitions were found.
Also add logging to indicate what went wrong.

This mtdsplit parser makes a very limited check of the first YAFFS
header. For example, this will not match expectations when initially booting
an initramfs image with OEM on MTD.

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
Acked-by: Thibaut VARENE <hacks@slashdirt.org>
Link: https://github.com/openwrt/openwrt/pull/16780
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-10-30 11:15:34 +01:00
..
backport-6.6 generic: backport upstream r8169 irq patch 2024-10-29 12:00:53 +01:00
files kernel: mtdsplit_minor: return 0 if not fatal 2024-10-30 11:15:34 +01:00
hack-6.6 kernel: bump 6.6 to 6.6.58 2024-10-24 00:23:24 +02:00
image
other-files
pending-6.6 generic: mtk_wed: fix path of MT7988 WO firmware 2024-10-26 15:21:03 +01:00
config-6.6 kernel: add missing CONFIG_DM_AUDIT 2024-10-27 12:45:16 +01:00
config-filter kernel: Reorder config files 2024-10-22 21:13:26 +02:00
PATCHES