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

Commit 9bebff6c authored by suzuki's avatar suzuki Committed by Linus Torvalds
Browse files

[PATCH] check_partition(): fix error check



Fix inverted check introduced in 57881dd9 "Fix
check_partition routines".

Signed-off-by: default avatarSuzuki K P <suzuki@in.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f6dfb4fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ check_partition(struct gendisk *hd, struct block_device *bdev)
	}
	if (res > 0)
		return state;
	if (!err)
	if (err)
	/* The partition is unrecognized. So report I/O errors if there were any */
		res = err;
	if (!res)