summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2014-07-12 21:47:05 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2014-07-12 21:47:05 +0000
commit7ae41e21463096b758e7ed41bb8bd66f09f823aa (patch)
tree27f3ba081dd137dd4d01f417b2d012f09ea384b2 /sys/arch
parent949325ba399881c87b6436e41197f6d498825866 (diff)
Fix the last commit by proper dereferencing the disklabel partition.
Found by me, fixed by krw@. Thanks!
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/octeon/dev/octcf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/dev/octcf.c b/sys/arch/octeon/dev/octcf.c
index 940b050c541..f14c23b91a1 100644
--- a/sys/arch/octeon/dev/octcf.c
+++ b/sys/arch/octeon/dev/octcf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: octcf.c,v 1.17 2014/07/12 20:38:27 krw Exp $ */
+/* $OpenBSD: octcf.c,v 1.18 2014/07/12 21:47:04 pirofti Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -373,7 +373,7 @@ _octcfstart(struct octcf_softc *wd, struct buf *bp)
lp = wd->sc_dk.dk_label;
secno = DL_BLKTOSEC(lp, bp->b_blkno) +
- DL_GETPOFFSET(lp->d_partitions[DISKPART(bp->b_dev)]);
+ DL_GETPOFFSET(&lp->d_partitions[DISKPART(bp->b_dev)]);
nsecs = howmany(bp->b_bcount, lp->d_secsize);
wd->sc_bp = bp;