openwrt/target/linux/generic/files/drivers
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
..
bcma kernel: use eth_random_addr instead of random_ether_addr 2023-05-22 22:28:18 +02:00
mtd kernel: mtdsplit_minor: return 0 if not fatal 2024-10-30 11:15:34 +01:00
net/phy generic: remove support for older kernels from swconfig 2024-09-20 19:26:52 +01:00
platform/mikrotik generic: platform/mikrotik: add wlan lz77 decompress 2024-10-08 10:45:58 +02:00
ssb kernel: use eth_random_addr instead of random_ether_addr 2023-05-22 22:28:18 +02:00