提交 9bebff6c 编写于 作者: S suzuki 提交者: Linus Torvalds

[PATCH] check_partition(): fix error check

Fix inverted check introduced in 57881dd9 "Fix
check_partition routines".
Signed-off-by: NSuzuki K P <suzuki@in.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f6dfb4fd
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册