1
0
Fork 0
forked from mirror/openwrt
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
backport-4.14
files
hack-4.9
hack-4.14
image
other-files
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
config-4.14
PATCHES