diff options
author | Mathias Kresin <dev@kresin.me> | 2018-07-08 23:18:15 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-07-24 22:24:21 +0200 |
commit | 3716b5e4e6374883c80e61021923733b14cdb011 (patch) | |
tree | 0f8ee8d0dee66f5f497f36d64857f03ffe9c06e7 /target/linux/pistachio/patches-4.14 | |
parent | 0ac91d82ed4d077150db902eb12d383c2be44fb2 (diff) | |
download | upstream-3716b5e4e6374883c80e61021923733b14cdb011.tar.gz upstream-3716b5e4e6374883c80e61021923733b14cdb011.tar.bz2 upstream-3716b5e4e6374883c80e61021923733b14cdb011.zip |
kernel: don't auto attach ubi on read error
With a10a204aab26cc ("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>
Diffstat (limited to 'target/linux/pistachio/patches-4.14')
0 files changed, 0 insertions, 0 deletions