mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
[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:
parent
f6dfb4fd7d
commit
9bebff6ca5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user