projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4419d1a
)
[PATCH] msdos partitions: fix logic error in AIX detection
author
Olaf Hering
<
[email protected]
>
Sat, 10 Feb 2007 09:45:48 +0000
(
01:45
-0800)
committer
Linus Torvalds
<
[email protected]
>
Sun, 11 Feb 2007 18:51:31 +0000
(10:51 -0800)
Correct the AIX magic check to let 'echo > /dev/sdb' actually work.
Signed-off-by: Olaf Hering <
[email protected]
>
Cc: OGAWA Hirofumi <
[email protected]
>
Cc: Anton Blanchard <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/partitions/msdos.c
patch
|
blob
|
history
diff --git
a/fs/partitions/msdos.c
b/fs/partitions/msdos.c
index dafd3b6b2dc3301be1c03946bfaf0dfd5e6a9f0f..78443e07b3c48c5a71690a49d583faa62794b893 100644
(file)
--- 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)
unsigned char *d;
int slot, ret = 0;
- if (
p[0] !
= AIX_LABEL_MAGIC1 &&
- p[1]
!
= AIX_LABEL_MAGIC2 &&
- p[2]
!
= AIX_LABEL_MAGIC3 &&
- p[3]
!= AIX_LABEL_MAGIC4
)
+ if (
!(p[0] =
= AIX_LABEL_MAGIC1 &&
+ p[1]
=
= AIX_LABEL_MAGIC2 &&
+ p[2]
=
= AIX_LABEL_MAGIC3 &&
+ p[3]
== AIX_LABEL_MAGIC4)
)
return 0;
/* Assume the partition table is valid if Linux partitions exists */
for (slot = 1; slot <= 4; slot++, pt++) {