diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-08-10 17:22:49 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-08-10 17:22:49 +0000 |
commit | ec2d902fe1865ce6cd2c21485019ebd8012b5eb0 (patch) | |
tree | 22da441e5eaef8460f6a3762f6d48a89456e9519 /sys | |
parent | 2b4ebc422a115f9cae64cf97eec78f2e9fb31326 (diff) |
Correct the upper bound for the command size before the passthrough
Coverity CID 1453317; Severity: unlikely, not user-visible.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pv/hvs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pv/hvs.c b/sys/dev/pv/hvs.c index 566698a1a92..bd13d068bce 100644 --- a/sys/dev/pv/hvs.c +++ b/sys/dev/pv/hvs.c @@ -341,7 +341,7 @@ hvs_scsi_cmd(struct scsi_xfer *xs) struct hvs_srb *srb = &io->cmd_srb; int i, rv, flags = BUS_DMA_NOWAIT; - if (xs->cmdlen > HVS_CMD_SIZE) { + if (xs->cmdlen > MAX_SRB_DATA) { printf("%s: CDB is too big: %d\n", sc->sc_dev.dv_xname, xs->cmdlen); memset(&xs->sense, 0, sizeof(xs->sense)); |