Skip to content

Commit ae02f75

Browse files
committed
Merge: scsi: storvsc: Set correct data length for sending SCSI command without payload
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6555 Fix data corruption issue in hyperV storvsc driver JIRA: https://issues.redhat.com/browse/RHEL-82537 Signed-off-by: Cathy Avery <[email protected]> Approved-by: Maxim Levitsky <[email protected]> Approved-by: Vitaly Kuznetsov <[email protected]> Approved-by: Ewan D. Milne <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Augusto Caringi <[email protected]>
2 parents f4a4295 + c9ced3e commit ae02f75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/storvsc_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,7 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd)
17941794

17951795
length = scsi_bufflen(scmnd);
17961796
payload = (struct vmbus_packet_mpb_array *)&cmd_request->mpb;
1797+
payload->range.len = 0;
17971798
payload_sz = 0;
17981799

17991800
if (scsi_sg_count(scmnd)) {

0 commit comments

Comments
 (0)