virtio_scsi: actually write the cdb size

instead of the sense size. Should help with #14133.
This commit is contained in:
Jérôme Duval 2018-05-08 17:33:01 +02:00
parent 645dc27d9d
commit edf7f4cd5f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ VirtioSCSIController::VirtioSCSIController(device_node *node)
offsetof(struct virtio_scsi_config, sense_size), &fConfig.sense_size,
sizeof(fConfig.sense_size));
fVirtio->write_device_config(fVirtioDevice,
offsetof(struct virtio_scsi_config, cdb_size), &fConfig.sense_size,
offsetof(struct virtio_scsi_config, cdb_size), &fConfig.cdb_size,
sizeof(fConfig.cdb_size));
fRequest = new(std::nothrow) VirtioSCSIRequest(true);