diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-07-22 05:32:11 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-07-22 05:32:11 +0000 |
commit | 2da1725120c542b7c9589b05ceafd2b5e6c8b159 (patch) | |
tree | 2cd74a9128bf4ce764aa9d50dcee4a238eeb175c /sys | |
parent | b034971d133858dd8525c941ee389985a28a0782 (diff) |
Mark two more DMA accessible malloc(9)s.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/scsi_ioctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c index b9a365f1d30..6eadc4b7862 100644 --- a/sys/scsi/scsi_ioctl.c +++ b/sys/scsi/scsi_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_ioctl.c,v 1.45 2010/07/10 02:52:38 matthew Exp $ */ +/* $OpenBSD: scsi_ioctl.c,v 1.46 2010/07/22 05:32:10 matthew Exp $ */ /* $NetBSD: scsi_ioctl.c,v 1.23 1996/10/12 23:23:17 christos Exp $ */ /* @@ -116,6 +116,7 @@ scsi_ioc_cmd(struct scsi_link *link, scsireq_t *screq) xs->cmdlen = screq->cmdlen; if (screq->datalen > 0) { + /* XXX dma accessible */ xs->data = malloc(screq->datalen, M_TEMP, M_WAITOK | M_CANFAIL | M_ZERO); if (xs->data == NULL) { @@ -239,6 +240,7 @@ scsi_ioc_ata_cmd(struct scsi_link *link, atareq_t *atareq) xs->cmdlen = sizeof(*cdb); if (atareq->datalen > 0) { + /* XXX dma accessible */ xs->data = malloc(atareq->datalen, M_TEMP, M_WAITOK | M_CANFAIL | M_ZERO); if (xs->data == NULL) { |