diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-03-12 16:33:54 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-03-12 16:33:54 +0000 |
commit | ba558e601fe88b6f24111be0aa4bf35993fa2a39 (patch) | |
tree | 803d1cea4f4175e8c943c4f7557a0929d79c031e | |
parent | 010ced868247afecffe6a13f4684dbdfb9f6bd91 (diff) |
initialise min arg to uvm_km_suballoc; not currently enabled code path
-rw-r--r-- | sys/dev/ccd.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |