diff options
author | dyson <dyson@FreeBSD.org> | 1996-05-24 01:39:50 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-05-24 01:39:50 +0000 |
commit | 428f960220011db581fa259b20ce6af8eb71b6cd (patch) | |
tree | f5d8f01745158d94272762fc7ab7123c5c2bc913 /sys/kern | |
parent | ab2eb71c6f0d52b75d38708dd906c6461ab8cd04 (diff) | |
download | FreeBSD-src-428f960220011db581fa259b20ce6af8eb71b6cd.zip FreeBSD-src-428f960220011db581fa259b20ce6af8eb71b6cd.tar.gz |
Change the *evil* allocation of memory from kmem_map to the kernel_map.
This will mess things up especially recently.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_lkm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c index f015157..85fb78e 100644 --- a/sys/kern/kern_lkm.c +++ b/sys/kern/kern_lkm.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_lkm.c,v 1.29 1996/03/28 14:31:40 scrappy Exp $ + * $Id: kern_lkm.c,v 1.30 1996/05/01 02:42:54 bde Exp $ */ #include <sys/param.h> @@ -149,7 +149,7 @@ lkmunreserve() * Actually unreserve the memory */ if (curp && curp->area) { - kmem_free(kmem_map, curp->area, curp->size);/**/ + kmem_free(kernel_map, curp->area, curp->size);/**/ curp->area = 0; if (curp->private.lkm_any != NULL) curp->private.lkm_any = NULL; @@ -234,7 +234,7 @@ lkmcioctl(dev, cmd, data, flag, p) */ curp->size = resrvp->size; - curp->area = kmem_alloc(kmem_map, curp->size);/**/ + curp->area = kmem_alloc(kernel_map, curp->size);/**/ curp->offset = 0; /* load offset */ |