[syslinux] [PATCH] chain.c32: fix booting from logical partitions
Sergey Vlasov
vsu at altlinux.ru
Thu Apr 24 12:33:54 PDT 2008
Booting from a logical partition failed with the "Requested logical
partition not found" error due to a wrong test for partition signature
in find_logical_partition().
Signed-off-by: Sergey Vlasov <vsu at altlinux.ru>
---
com32/modules/chain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index b790bd0..ec92cd0 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -228,7 +228,7 @@ find_logical_partition(int whichpart, char *table, struct part_entry *self,
struct part_entry *found;
int i;
- if ( *(uint16_t *)(ptab + 0x1fe) != 0xaa55 )
+ if ( *(uint16_t *)(table + 0x1fe) != 0xaa55 )
return NULL; /* Signature missing */
/* We are assumed to already having enumerated all the data partitions
--
1.5.4.3.354.g13f5
More information about the Syslinux
mailing list