diff options
author | Mathias Kresin <dev@kresin.me> | 2018-07-08 23:18:15 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-12-18 09:50:54 +0100 |
commit | 031d5cf248490b1e5aedac63ac8ac3c49932912f (patch) | |
tree | e72bf8fb96d2c41373c6b30c5bb5286b0be12533 /tools/libtool | |
parent | e6945262642a3c83c4f9593286e0c7b794c211f0 (diff) | |
download | upstream-031d5cf248490b1e5aedac63ac8ac3c49932912f.tar.gz upstream-031d5cf248490b1e5aedac63ac8ac3c49932912f.tar.bz2 upstream-031d5cf248490b1e5aedac63ac8ac3c49932912f.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>
(backported from 3716b5e4e6374883c80e61021923733b14cdb011)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tools/libtool')
0 files changed, 0 insertions, 0 deletions