summaryrefslogtreecommitdiff
path: root/sys/dev/pci/mfii.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-01-07 04:56:57 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-01-07 04:56:57 +0000
commitc84dacce64df8f20cf723699224dc50701b2e689 (patch)
treee4c75a487cd28a256aa392a950bb5c878166b121 /sys/dev/pci/mfii.c
parent1c71d112a5b8153c61b8540974a67a0fdfd97b94 (diff)
replace bcopy with memcpy. still cant see the bug im looking for.
Diffstat (limited to 'sys/dev/pci/mfii.c')
-rw-r--r--sys/dev/pci/mfii.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index bdce08253d2..9b0048a34e4 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.21 2015/01/07 04:46:18 dlg Exp $ */
+/* $OpenBSD: mfii.c,v 1.22 2015/01/07 04:56:56 dlg Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -1047,7 +1047,7 @@ mfii_mgmt(struct mfii_softc *sc, struct mfii_ccb *ccb,
case SCSI_DATA_OUT:
ccb->ccb_direction = MFII_DATA_OUT;
hdr->mfh_flags = htole16(MFI_FRAME_DIR_WRITE);
- bcopy(buf, dma_buf, len);
+ memcpy(dma_buf, buf, len);
break;
}
@@ -1079,7 +1079,7 @@ mfii_mgmt(struct mfii_softc *sc, struct mfii_ccb *ccb,
rv = 0;
if (ccb->ccb_direction == MFII_DATA_IN)
- bcopy(dma_buf, buf, len);
+ memcpy(buf, dma_buf, len);
}
done:
@@ -1440,7 +1440,7 @@ mfii_scsi_cmd_cdb(struct mfii_softc *sc, struct scsi_xfer *xs)
io->direction = MPII_SCSIIO_DIR_NONE;
break;
}
- bcopy(xs->cmd, io->cdb, xs->cmdlen);
+ memcpy(io->cdb, xs->cmd, xs->cmdlen);
ctx->virtual_disk_target_id = htole16(link->target);
@@ -1551,7 +1551,7 @@ mfii_pd_scsi_cmd_cdb(struct mfii_softc *sc, struct scsi_xfer *xs)
io->direction = MPII_SCSIIO_DIR_NONE;
break;
}
- bcopy(xs->cmd, io->cdb, xs->cmdlen);
+ memcpy(io->cdb, xs->cmd, xs->cmdlen);
ctx->virtual_disk_target_id = htole16(link->target);
ctx->raid_flags = MFII_RAID_CTX_IO_TYPE_SYSPD;