projects/linux·commit 9bebff6c

[PATCH] check_partition(): fix error check

9bebff6c · suzuki <[email protected]> · 2007-03-07 20:41:24 -08:00

Fix inverted check introduced in 57881dd9df40b76dc7fc6a0d13fd75f337accb32 "Fix
check_partition routines".

Signed-off-by: Suzuki K P <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
9bebff6ca5871e07b665cdaf71028ea21eb0bf0e
Parents
f6dfb4fd

Changes

1 files changed · +1 −1

FileStatusAddDelContent
fs/partitions/check.cmodified+1−1View file

fs/partitions/check.c

View file
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 22d38ff..e46d237 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -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)