Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54dd55a4 authored by Steffen Sledz's avatar Steffen Sledz Committed by Artem Bityutskiy
Browse files

UBIFS: avoid kernel error if ubifs superblock read fails



.get_sb is called on mounts with automatic fs detection too, so this
function should print an error if it cannot read the superblock in
debug mode only (new behaviour conforms the other fs types)

Signed-off-by: default avatarSteffen Sledz <sledz@dresearch.de>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 2ef13294
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2054,7 +2054,7 @@ static int ubifs_get_sb(struct file_system_type *fs_type, int flags,
	 */
	ubi = open_ubi(name, UBI_READONLY);
	if (IS_ERR(ubi)) {
		ubifs_err("cannot open \"%s\", error %d",
		dbg_err("cannot open \"%s\", error %d",
			name, (int)PTR_ERR(ubi));
		return PTR_ERR(ubi);
	}