summaryrefslogtreecommitdiff
path: root/sys/dev/ld.c
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2003-05-10 23:12:28 +0000
committerthorpej <thorpej@NetBSD.org>2003-05-10 23:12:28 +0000
commite43fecb2285f4eef106b0044deb196e5228ad8d1 (patch)
tree391f415db317ea09953273b5cb77feefcf2bf497 /sys/dev/ld.c
parent0094fe5bbb33090e519792e7cf393cd900dde614 (diff)
Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself. This paves the way for some future changes.
Diffstat (limited to 'sys/dev/ld.c')
-rw-r--r--sys/dev/ld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ld.c b/sys/dev/ld.c
index b3c2186a296..0a1cf16f2bc 100644
--- a/sys/dev/ld.c
+++ b/sys/dev/ld.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ld.c,v 1.19 2003/01/27 02:43:30 thorpej Exp $ */
+/* $NetBSD: ld.c,v 1.20 2003/05/10 23:12:43 thorpej Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.19 2003/01/27 02:43:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.20 2003/05/10 23:12:43 thorpej Exp $");
#include "rnd.h"
@@ -510,7 +510,7 @@ ldstart(struct ld_softc *sc, struct buf *bp)
* If past the end of partition, just return.
*/
if (part != RAW_PART &&
- bounds_check_with_label(bp, lp,
+ bounds_check_with_label(&sc->sc_dk, bp,
(sc->sc_flags & (LDF_WLABEL | LDF_LABELLING)) != 0) <= 0) {
bp->b_resid = bp->b_bcount;
biodone(bp);