diff options
Diffstat (limited to 'sys/dev/pv/vioscsi.c')
-rw-r--r-- | sys/dev/pv/vioscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vioscsi.c b/sys/dev/pv/vioscsi.c index 85a3f996ffc..aa2a1ccd8f2 100644 --- a/sys/dev/pv/vioscsi.c +++ b/sys/dev/pv/vioscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioscsi.c,v 1.25 2020/07/22 13:16:05 krw Exp $ */ +/* $OpenBSD: vioscsi.c,v 1.26 2020/09/22 19:32:53 krw Exp $ */ /* * Copyright (c) 2013 Google Inc. * @@ -212,7 +212,7 @@ vioscsi_scsi_cmd(struct scsi_xfer *xs) if ((size_t)xs->cmdlen > sizeof(req->cdb)) goto stuffup; memset(req->cdb, 0, sizeof(req->cdb)); - memcpy(req->cdb, xs->cmd, xs->cmdlen); + memcpy(req->cdb, &xs->cmd, xs->cmdlen); int isread = !!(xs->flags & SCSI_DATA_IN); |