summaryrefslogtreecommitdiff
path: root/sys/dev/ic/aic79xx_openbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/aic79xx_openbsd.c')
-rw-r--r--sys/dev/ic/aic79xx_openbsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c
index 84d59da4564..0601dcaa680 100644
--- a/sys/dev/ic/aic79xx_openbsd.c
+++ b/sys/dev/ic/aic79xx_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx_openbsd.c,v 1.58 2020/07/28 21:33:14 krw Exp $ */
+/* $OpenBSD: aic79xx_openbsd.c,v 1.59 2020/09/22 19:32:52 krw Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -486,7 +486,7 @@ ahd_setup_data(struct ahd_softc *ahd, struct scsi_xfer *xs,
return;
}
- memcpy(hscb->shared_data.idata.cdb, xs->cmd, hscb->cdb_len);
+ memcpy(hscb->shared_data.idata.cdb, &xs->cmd, hscb->cdb_len);
/* Only use S/G if there is a transfer */
if (xs->datalen) {