diff options
author | ae <ae@FreeBSD.org> | 2012-08-06 08:54:06 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2012-08-06 08:54:06 +0000 |
commit | 956191c4f0ba7074b744164e145e8b4e14a9c613 (patch) | |
tree | 10a3990d0a75b9c801f38c937476d3e83936dea7 /sys/boot | |
parent | 798113957def40b6bf34270b4198ff036fa6e950 (diff) | |
download | FreeBSD-src-956191c4f0ba7074b744164e145e8b4e14a9c613.zip FreeBSD-src-956191c4f0ba7074b744164e145e8b4e14a9c613.tar.gz |
Fix start offset calculation for the EBR partitions.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/common/part.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c index 34a08b1..6614573 100644 --- a/sys/boot/common/part.c +++ b/sys/boot/common/part.c @@ -389,7 +389,7 @@ ptable_ebrread(struct ptable *table, void *dev, diskread_t dread) entry = malloc(sizeof(*entry)); if (entry == NULL) break; - entry->part.start = e1->part.start + start; + entry->part.start = offset + start; entry->part.end = entry->part.start + end - 1; entry->part.index = index++; entry->part.type = mbr_parttype(dp[0].dp_typ); |