mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-15 07:26:20 -05:00
Witha10a204aab("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 from3716b5e4e6) (rebased patches) Signed-off-by: Jo-Philipp Wich <jo@mein.io>