aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 63981edf9ab9..63f0a15d9887 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -125,6 +125,7 @@ static void iscsi_prep_scsi_cmd_pdu(struct iscsi_cmd_task *ctask)
125 MAX_COMMAND_SIZE - sc->cmd_len); 125 MAX_COMMAND_SIZE - sc->cmd_len);
126 126
127 ctask->data_count = 0; 127 ctask->data_count = 0;
128 ctask->imm_count = 0;
128 if (sc->sc_data_direction == DMA_TO_DEVICE) { 129 if (sc->sc_data_direction == DMA_TO_DEVICE) {
129 hdr->flags |= ISCSI_FLAG_CMD_WRITE; 130 hdr->flags |= ISCSI_FLAG_CMD_WRITE;
130 /* 131 /*
@@ -141,7 +142,6 @@ static void iscsi_prep_scsi_cmd_pdu(struct iscsi_cmd_task *ctask)
141 * 142 *
142 * pad_count bytes to be sent as zero-padding 143 * pad_count bytes to be sent as zero-padding
143 */ 144 */
144 ctask->imm_count = 0;
145 ctask->unsol_count = 0; 145 ctask->unsol_count = 0;
146 ctask->unsol_offset = 0; 146 ctask->unsol_offset = 0;
147 ctask->unsol_datasn = 0; 147 ctask->unsol_datasn = 0;