From 339f8fca8530aaa518a62a327d06576c3d321b9c Mon Sep 17 00:00:00 2001 From: matthew Date: Thu, 22 Jul 2010 05:32:10 +0000 Subject: [PATCH] Mark two more DMA accessible malloc(9)s. --- sys/scsi/scsi_ioctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.20.1