1
0
Fork 0

[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>
hifive-unleashed-5.1
suzuki 2007-03-07 20:41:24 -08:00 committed by Linus Torvalds
parent f6dfb4fd7d
commit 9bebff6ca5
1 changed files with 1 additions and 1 deletions

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)