From: suzuki Fix inverted check introduced in 57881dd9df40b76dc7fc6a0d13fd75f337accb32 "Fix check_partition routines". Signed-off-by: Suzuki K P Signed-off-by: Andrew Morton --- fs/partitions/check.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN fs/partitions/check.c~check_partition-fix-error-check fs/partitions/check.c --- a/fs/partitions/check.c~check_partition-fix-error-check +++ a/fs/partitions/check.c @@ -180,7 +180,7 @@ check_partition(struct gendisk *hd, stru } 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) _