diff options
Diffstat (limited to 'sys/dev/ccd.c')
-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); /* |