chain.c32: fix booting from logical partitions
authorSergey Vlasov <vsu@altlinux.ru>
Thu, 24 Apr 2008 19:33:54 +0000 (23:33 +0400)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 24 Apr 2008 21:14:22 +0000 (14:14 -0700)
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@altlinux.ru>
com32/modules/chain.c

index b790bd0..ec92cd0 100644 (file)
@@ -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