From: matthew Date: Thu, 22 Jul 2010 05:32:10 +0000 (+0000) Subject: Mark two more DMA accessible malloc(9)s. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=339f8fca8530aaa518a62a327d06576c3d321b9c;p=openbsd Mark two more DMA accessible malloc(9)s. --- 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) {