From ac7cc4d6d9b03994e83882da76844f39533f08f4 Mon Sep 17 00:00:00 2001 From: suzuki Date: Wed, 7 Mar 2007 20:41:24 -0800 Subject: [PATCH] [PATCH] check_partition(): fix error check Fix inverted check introduced in 3a365f7bb0d3847c5ad75246a28e30c2f8bacc8b "Fix check_partition routines". Signed-off-by: Suzuki K P Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/partitions/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 22d38ffc9ef0b..e46d237b10f90 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -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) -- 2.39.5