diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-01-24 21:38:57 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-01-24 21:38:57 +0000 |
commit | 47834ace53404d779d3349f533133ee6c3b67dd2 (patch) | |
tree | b0f703550415d9d8bbb2231c4cae5e0322724127 | |
parent | bd7104aa7862e7e0c95f8c31f56fa632580fec28 (diff) |
Well when MP comes.. we need locks
-rw-r--r-- | sys/dev/ccd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index 1b7cea66dbb..e602a07bfb6 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.28 1998/01/24 21:33:32 niklas Exp $ */ +/* $OpenBSD: ccd.c,v 1.29 1998/01/24 21:38:56 niklas Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -928,8 +928,10 @@ ccdbuffer(cs, bp, bn, addr, bcount, cbpp, old_io) else { do { s = splbio(); + vm_map_lock(ccdmap); nbp->b_data = (caddr_t)kmem_alloc_pageable( ccdmap, bp->b_bcount); + vm_map_unlock(ccdmap); splx(s); /* |