diff options
Diffstat (limited to 'fs/partitions/msdos.c')
-rw-r--r-- | fs/partitions/msdos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/partitions/msdos.c b/fs/partitions/msdos.c index dafd3b6b2dc3..78443e07b3c4 100644 --- a/fs/partitions/msdos.c +++ b/fs/partitions/msdos.c | |||
@@ -68,10 +68,10 @@ static int aix_magic_present(unsigned char *p, struct block_device *bdev) | |||
68 | unsigned char *d; | 68 | unsigned char *d; |
69 | int slot, ret = 0; | 69 | int slot, ret = 0; |
70 | 70 | ||
71 | if (p[0] != AIX_LABEL_MAGIC1 && | 71 | if (!(p[0] == AIX_LABEL_MAGIC1 && |
72 | p[1] != AIX_LABEL_MAGIC2 && | 72 | p[1] == AIX_LABEL_MAGIC2 && |
73 | p[2] != AIX_LABEL_MAGIC3 && | 73 | p[2] == AIX_LABEL_MAGIC3 && |
74 | p[3] != AIX_LABEL_MAGIC4) | 74 | p[3] == AIX_LABEL_MAGIC4)) |
75 | return 0; | 75 | return 0; |
76 | /* Assume the partition table is valid if Linux partitions exists */ | 76 | /* Assume the partition table is valid if Linux partitions exists */ |
77 | for (slot = 1; slot <= 4; slot++, pt++) { | 77 | for (slot = 1; slot <= 4; slot++, pt++) { |