Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.4
[deb_dpdk.git]
/
examples
/
vhost_scsi
/
scsi.c
diff --git
a/examples/vhost_scsi/scsi.c
b/examples/vhost_scsi/scsi.c
index
fd430ec
..
47c5c83
100644
(file)
--- a/
examples/vhost_scsi/scsi.c
+++ b/
examples/vhost_scsi/scsi.c
@@
-210,7
+210,7
@@
vhost_bdev_scsi_inquiry_command(struct vhost_block_dev *bdev,
break;
case SPC_VPD_UNIT_SERIAL_NUMBER:
hlen = 4;
break;
case SPC_VPD_UNIT_SERIAL_NUMBER:
hlen = 4;
-
strn
cpy((char *)vpage->params, bdev->name, 32);
+
mem
cpy((char *)vpage->params, bdev->name, 32);
vpage->alloc_len = rte_cpu_to_be_16(32);
break;
case SPC_VPD_DEVICE_IDENTIFICATION:
vpage->alloc_len = rte_cpu_to_be_16(32);
break;
case SPC_VPD_DEVICE_IDENTIFICATION:
@@
-247,7
+247,7
@@
vhost_bdev_scsi_inquiry_command(struct vhost_block_dev *bdev,
strncpy((char *)desig->desig, "INTEL", 8);
vhost_strcpy_pad((char *)&desig->desig[8],
bdev->product_name, 16, ' ');
strncpy((char *)desig->desig, "INTEL", 8);
vhost_strcpy_pad((char *)&desig->desig[8],
bdev->product_name, 16, ' ');
-
strn
cpy((char *)&desig->desig[24], bdev->name, 32);
+
mem
cpy((char *)&desig->desig[24], bdev->name, 32);
len += sizeof(struct scsi_desig_desc) + 8 + 16 + 32;
buf += sizeof(struct scsi_desig_desc) + desig->len;
len += sizeof(struct scsi_desig_desc) + 8 + 16 + 32;
buf += sizeof(struct scsi_desig_desc) + desig->len;
@@
-312,7
+312,7
@@
vhost_bdev_scsi_inquiry_command(struct vhost_block_dev *bdev,
bdev->product_name);
/* PRODUCT REVISION LEVEL */
bdev->product_name);
/* PRODUCT REVISION LEVEL */
-
strn
cpy((char *)inqdata->product_rev, "0001", 4);
+
mem
cpy((char *)inqdata->product_rev, "0001", 4);
/* Standard inquiry data ends here. Only populate
* remaining fields if alloc_len indicates enough
/* Standard inquiry data ends here. Only populate
* remaining fields if alloc_len indicates enough