summaryrefslogtreecommitdiffstats
path: root/fs/partitions
diff options
context:
space:
mode:
authorsuzuki <suzuki@in.ibm.com>2007-03-08 05:41:24 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-03-08 16:38:22 +0100
commit9bebff6ca5871e07b665cdaf71028ea21eb0bf0e (patch)
treeff8009fa4e8a53a547e29563cbc58985f7454a41 /fs/partitions
parent[PATCH] Add epoll compat_ code to fs/compat.c (diff)
downloadlinux-9bebff6ca5871e07b665cdaf71028ea21eb0bf0e.tar.xz
linux-9bebff6ca5871e07b665cdaf71028ea21eb0bf0e.zip
[PATCH] check_partition(): fix error check
Fix inverted check introduced in 57881dd9df40b76dc7fc6a0d13fd75f337accb32 "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>
Diffstat (limited to 'fs/partitions')
-rw-r--r--fs/partitions/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 22d38ffc9ef0..e46d237b10f9 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)