summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
index 18626cb..e038cd4 100644
--- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
@@ -751,7 +751,8 @@ hv_storvsc_io_request(struct hv_device *device,
vstor_packet->flags |= REQUEST_COMPLETION_FLAG;
- vstor_packet->u.vm_srb.length = VSTOR_PKT_SIZE;
+ vstor_packet->u.vm_srb.length =
+ sizeof(struct vmscsi_req) - vmscsi_size_delta;
vstor_packet->u.vm_srb.sense_info_len = sense_buffer_size;
OpenPOWER on IntegriCloud