Skip to content

Commit

Permalink
[PATCH] check_partition(): fix error check
Browse files Browse the repository at this point in the history
Fix inverted check introduced in 57881dd "Fix
check_partition routines".

Signed-off-by: Suzuki K P <suzuki@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
suzuki authored and Linus Torvalds committed Mar 8, 2007
1 parent f6dfb4f commit 9bebff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9bebff6

Please sign in to comment.