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

[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
...@@ -180,7 +180,7 @@ check_partition(struct gendisk *hd, struct block_device *bdev) ...@@ -180,7 +180,7 @@ check_partition(struct gendisk *hd, struct block_device *bdev)
} }
if (res > 0) if (res > 0)
return state; return state;
if (!err) if (err)
/* The partition is unrecognized. So report I/O errors if there were any */ /* The partition is unrecognized. So report I/O errors if there were any */
res = err; res = err;
if (!res) if (!res)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment