virtio-scsi: Fix comment for VirtIOSCSIReq
PATCH 1/1 virtio-scsi: Fix comment for VirtIOSCSIReq
The cdb is not zeroed by virtio_scsi_init_req, so fix the misleading comment.
Suggested-by Markus Armbruster <[email protected]>
Signed-off-by Fam Zheng <[email protected]>
--- include/hw/virtio/virtio-scsi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/hw/virtio/virtio-scsi.h +2 -1
@@ -209,7 +209,8 @@ typedef struct VirtIOSCSIReq {/* Note: * - fields before elem are initialized by virtio_scsi_init_req; * - elem is uninitialized at the time of allocation. -* - fields after elem are zeroed by virtio_scsi_init_req. +* - fields after elem (except the ending cdb[]) are zeroed by +* virtio_scsi_init_req. * */ VirtQueueElement elem;
Signature · 1 line
1.9.3
Paolo Bonzini
AppliedQuoted 15 lines · Fam Zheng
The cdb is not zeroed by
virtio_scsi_init_req, so fix the misleading comment.Suggested-by Markus Armbruster <[email protected]>Signed-off-by Fam Zheng <[email protected]>--- include/hw/virtio/virtio-scsi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)include/hw/virtio/virtio-scsi.h +0
-0
include/hw/virtio/virtio-scsi.h typedef struct VirtIOSCSIReq { · line 216
Quoted 9 lines
include/hw/virtio/virtio-scsi.h +2
-1@@ -209,7 +209,8 @@ typedef struct VirtIOSCSIReq {/* Note: * - fields before elem are initialized by virtio_scsi_init_req; * - elem is uninitialized at the time of allocation. -* - fields after elem are zeroed by virtio_scsi_init_req. +* - fields after elem (except the ending cdb[]) are zeroed by +* virtio_scsi_init_req. * */ VirtQueueElement elem;
Applied, thanks.
Paolo