mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue