[PATCH] check_partition(): fix error check

Fix inverted check introduced in 57881dd9df "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>
This commit is contained in:
suzuki 2007-03-07 20:41:24 -08:00 committed by Linus Torvalds
parent f6dfb4fd7d
commit 9bebff6ca5

View File

@ -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)