diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.c | 1 | ||||
-rw-r--r-- | drivers/scsi/libiscsi.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 2eadb6d0ad8b..a2622f4bd858 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c | |||
@@ -400,6 +400,7 @@ iscsi_iser_session_create(struct iscsi_transport *iscsit, | |||
400 | ctask = session->cmds[i]; | 400 | ctask = session->cmds[i]; |
401 | iser_ctask = ctask->dd_data; | 401 | iser_ctask = ctask->dd_data; |
402 | ctask->hdr = (struct iscsi_cmd *)&iser_ctask->desc.iscsi_header; | 402 | ctask->hdr = (struct iscsi_cmd *)&iser_ctask->desc.iscsi_header; |
403 | ctask->hdr_max = sizeof(iser_ctask->desc.iscsi_header); | ||
403 | } | 404 | } |
404 | 405 | ||
405 | for (i = 0; i < session->mgmtpool_max; i++) { | 406 | for (i = 0; i < session->mgmtpool_max; i++) { |
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 0d7914fd8ef3..59365864c989 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
@@ -1570,7 +1570,6 @@ iscsi_session_setup(struct iscsi_transport *iscsit, | |||
1570 | if (cmd_task_size) | 1570 | if (cmd_task_size) |
1571 | ctask->dd_data = &ctask[1]; | 1571 | ctask->dd_data = &ctask[1]; |
1572 | ctask->itt = cmd_i; | 1572 | ctask->itt = cmd_i; |
1573 | ctask->hdr_max = sizeof(struct iscsi_cmd); | ||
1574 | INIT_LIST_HEAD(&ctask->running); | 1573 | INIT_LIST_HEAD(&ctask->running); |
1575 | } | 1574 | } |
1576 | 1575 | ||