openwrt/target/linux/generic
Mathias Kresin 031d5cf248 kernel: don't auto attach ubi on read error
With a10a204aab ("kernel: make ubi auto-attach check for a tar file
magic") the check for the magic was added without considering a failing
mtd_read(). If the read fails, no check is done and the mount code is
called straight away.

Failing with an error message for such cases seems to me the cleaner way,
as it would allow to spot hidden/workaround issues.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 3716b5e4e6)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-18 09:50:54 +01:00
..
backport-4.9 kernel: bump 4.9 to 4.9.145 2018-12-14 13:04:54 +01:00
backport-4.14 kernel: replace bridge port isolate hack with upstream patch backport on 4.14 2018-12-18 09:45:59 +01:00
files generic: revert workarounds for AR8337 switch 2018-08-23 22:44:47 +02:00
hack-4.9 kernel: adjust bridge port isolate patch to match upstream attribute naming 2018-12-18 09:45:59 +01:00
hack-4.14 kernel: replace bridge port isolate hack with upstream patch backport on 4.14 2018-12-18 09:45:59 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-4.9 kernel: don't auto attach ubi on read error 2018-12-18 09:50:54 +01:00
pending-4.14 kernel: don't auto attach ubi on read error 2018-12-18 09:50:54 +01:00
config-4.9 kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
config-4.14 kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00