openwrt/target/linux
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
..
airoha airoha: an7581: replace TRNG patch with upstream version 2024-10-28 14:01:52 +01:00
apm821xx apm821xx: move CONFIG_GENERIC_PHY up 2024-10-24 00:25:28 +02:00
archs38 kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +02:00
armsr armsr: don't limit kmods to armsr armv8 subtarget 2024-10-29 00:07:55 +01:00
at91 at91: drop 6.1 support 2024-09-20 18:42:56 +01:00
ath79 ath79: replace ancient kmod-ledtrig-usbdev with kmod-usb-ledtrig-usbport 2024-10-29 00:07:52 +01:00
bcm27xx kernel: bump 6.6 to 6.6.58 2024-10-24 00:23:24 +02:00
bcm47xx generic: 6.6: add backported bmips CBR patches 2024-08-06 14:06:09 +02:00
bcm53xx bcm53xx: drop kmod-ledtrig-default-on and kmod-ledtrig-netdev 2024-10-29 00:07:52 +01:00
bcm4908 bcm4908: drop 6.1 support 2024-08-30 11:39:44 +02:00
bmips bmips: fix kernel panic caused by missing CBR address 2024-10-01 19:15:45 +02:00
d1 kernel: Reorder config files 2024-10-22 21:13:26 +02:00
gemini kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
generic kernel: mtdsplit_minor: return 0 if not fatal 2024-10-30 11:15:34 +01:00
imx kernel: Reorder config files 2024-10-22 21:13:26 +02:00
ipq40xx ipq40xx: drop ipq-wifi-teltonika_rutx from Teltonika RUTX50 2024-10-29 00:07:53 +01:00
ipq806x kernel: Reorder config files 2024-10-22 21:13:26 +02:00
ixp4xx ixp4xx: Add back support for D-Link DSM G600 A 2024-05-25 09:17:19 +02:00
kirkwood kirkwood: dns320l: export mcu_power GPIO 2024-10-28 09:24:32 +01:00
lantiq treewide: remove platform_get_resoruce 2024-10-22 00:44:33 +02:00
layerscape layerscape: drop fmc and fmc-eth-config package 2024-10-29 00:07:55 +01:00
loongarch64 kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +02:00
malta kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets 2024-09-06 22:46:59 +02:00
mediatek mediatek: mt7988: add DT entries for WED 2024-10-27 14:27:20 +00:00
mpc85xx mpc85xx: move CONFIG_MTD_SPLIT_FIRMWARE up 2024-10-24 00:30:11 +02:00
mvebu kernel: Reorder config files 2024-10-22 21:13:26 +02:00
mxs msx: fix wrong device package list for I2SE Duckbill 2024-10-29 00:07:53 +01:00
octeon octeon: set Linux 6.6 as the default kernel 2024-09-09 18:24:34 +02:00
omap omap: remove 6.1 support 2024-09-16 00:19:49 +02:00
pistachio pistachio: drop files for Linux 6.1 2024-09-20 18:57:33 +01:00
qoriq kernel: move CONFIG_DRM_OFDRM to generic 2024-10-22 00:50:55 +02:00
qualcommax ipq807x: sax1v1k: fix sysupgrade not touching rootfs_data 2024-09-24 00:07:55 +02:00
ramips ramips: linkit: replace driver with gpio-hog 2024-10-30 11:11:07 +01:00
realtek realtek: ethernet: Improve SMI polling configuration based on DTS 2024-10-27 22:26:25 +01:00
rockchip rockchip: Add LED aliases for FriendlyElec NanoPi R3S 2024-10-27 14:57:51 +01:00
sifiveu kernel: Reorder config files 2024-10-22 21:13:26 +02:00
siflower siflower: gpio: use gpiochip_get_data 2024-10-21 09:18:21 +08:00
starfive kernel: Reorder config files 2024-10-22 21:13:26 +02:00
sunxi kernel: Reorder config files 2024-10-22 21:13:26 +02:00
tegra tegra: promote kernel 6.6 as default 2024-07-13 14:29:16 +02:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 kernel: Reorder config files 2024-10-22 21:13:26 +02:00
zynq zynq: drop 6.1 support 2024-08-03 11:36:59 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00