summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-09-15 05:35:43 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-09-15 05:35:43 +0000
commit6377154f655edbb4a283a79d1c92a2e337910175 (patch)
tree953010d70c8193f95c940927d9ba770ad134eeae /sys/kern/subr_disk.c
parent0fd5676f93bc4dc7aaf5db4463b0e3c768780f94 (diff)
Unbeak boot from GPT partition. Reported by Henrik Friedrichsen.
ok krw
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index e74aec0f1ee..34f4739d189 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.216 2015/09/13 14:38:17 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.217 2015/09/15 05:35:42 yasuoka Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -384,7 +384,7 @@ readdoslabel(struct buf *bp, void (*strat)(struct buf *),
error = spoofgptlabel(bp, strat, gptlp);
if (error == 0) {
dospartoff = DL_GETBSTART(gptlp);
- dospartoff = DL_GETBEND(gptlp);
+ dospartend = DL_GETBEND(gptlp);
if (partoffp) {
if (dospartoff == 0)
return (ENXIO);