Skip to contentSkip to conversation

virtio-scsi: Fix comment for VirtIOSCSIReq

PATCH Applied Fam Zheng 2 participants 2 messages Nov 12, 2014

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 virtio-scsi: Fix comment for VirtIOSCSIReq

The cdb is not zeroed by virtio_scsi_init_req, so fix the misleading comment.

---
 include/hw/virtio/virtio-scsi.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/hw/virtio/virtio-scsi.h +2 -1
index 9e1a49c..bf17cc9 100644
@@ -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
#1 lore raw
Quoted 15 lines · Fam Zheng

The cdb is not zeroed by virtio_scsi_init_req, so fix the misleading comment.

---
 include/hw/virtio/virtio-scsi.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/hw/virtio/virtio-scsi.h +0 -0
index 9e1a49c..bf17cc9 100644

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