summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);