summaryrefslogtreecommitdiff
path: root/sys/crypto/cryptodev.c
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-07-20 09:06:39 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-07-20 09:06:39 +0000
commitf190bde761e6bdbff9dc143231d2c2d79c0d6d5e (patch)
treeefed00245a1b8761f2b7996a01b07d4d6db8d4ea /sys/crypto/cryptodev.c
parentf831b4043b552816e80dd36950553780363f8d0e (diff)
Mark a DMA accessible malloc for later correction. This is
potentially up to 64KB, so we'll need something fancier than dma_alloc().
Diffstat (limited to 'sys/crypto/cryptodev.c')
-rw-r--r--sys/crypto/cryptodev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c
index b76218bc09d..6b81461cde7 100644
--- a/sys/crypto/cryptodev.c
+++ b/sys/crypto/cryptodev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.c,v 1.71 2010/04/20 22:05:41 tedu Exp $ */
+/* $OpenBSD: cryptodev.c,v 1.72 2010/07/20 09:06:38 matthew Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -326,7 +326,7 @@ cryptodev_op(struct csession *cse, struct crypt_op *cop, struct proc *p)
cse->uio.uio_iov = cse->iovec;
bzero(&cse->iovec, sizeof(cse->iovec));
cse->uio.uio_iov[0].iov_len = cop->len;
- cse->uio.uio_iov[0].iov_base = malloc(cop->len, M_XDATA, M_WAITOK);
+ cse->uio.uio_iov[0].iov_base = malloc(cop->len, M_XDATA, M_WAITOK); /* XXX dma accessible */
cse->uio.uio_resid = cse->uio.uio_iov[0].iov_len;
/* number of requests, not logical and */