From ba558e601fe88b6f24111be0aa4bf35993fa2a39 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sat, 12 Mar 2005 16:33:54 +0000 Subject: initialise min arg to uvm_km_suballoc; not currently enabled code path --- sys/dev/ccd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index b2ee154bddc..3e3db43b1f8 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.56 2005/02/24 19:36:39 mickey Exp $ */ +/* $OpenBSD: ccd.c,v 1.57 2005/03/12 16:33:53 mickey Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -1329,10 +1329,12 @@ ccdioctl(dev, cmd, data, flag, p) * XXX to lock the kernel_map in interrupt context. It is * XXX doable via a freelist implementation though. */ - if (!ccdmap && !(ccd.ccd_flags & CCDF_OLD)) + if (!ccdmap && !(ccd.ccd_flags & CCDF_OLD)) { + min = vm_map_min(kernel_map); ccdmap = uvm_km_suballoc(kernel_map, &min, &max, CCD_CLUSTERS * MAXBSIZE, VM_MAP_INTRSAFE, FALSE, NULL); + } /* Attach the disk. */ cs->sc_dkdev.dk_name = cs->sc_xname; -- cgit v1.2.3