diff options
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 2068b66822b7..6ecb4baa37e2 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -3254,7 +3254,7 @@ static struct iscsi_transport iscsi_tcp_transport; | |||
3254 | 3254 | ||
3255 | static struct iscsi_cls_session * | 3255 | static struct iscsi_cls_session * |
3256 | iscsi_session_create(struct scsi_transport_template *scsit, | 3256 | iscsi_session_create(struct scsi_transport_template *scsit, |
3257 | uint32_t initial_cmdsn, uint32_t *sid) | 3257 | uint32_t initial_cmdsn, uint32_t *hostno) |
3258 | { | 3258 | { |
3259 | struct Scsi_Host *shost; | 3259 | struct Scsi_Host *shost; |
3260 | struct iscsi_session *session; | 3260 | struct iscsi_session *session; |
@@ -3274,7 +3274,8 @@ iscsi_session_create(struct scsi_transport_template *scsit, | |||
3274 | session->exp_cmdsn = initial_cmdsn + 1; | 3274 | session->exp_cmdsn = initial_cmdsn + 1; |
3275 | session->max_cmdsn = initial_cmdsn + 1; | 3275 | session->max_cmdsn = initial_cmdsn + 1; |
3276 | session->max_r2t = 1; | 3276 | session->max_r2t = 1; |
3277 | *sid = shost->host_no; | 3277 | |
3278 | *hostno = shost->host_no; | ||
3278 | 3279 | ||
3279 | /* initialize SCSI PDU commands pool */ | 3280 | /* initialize SCSI PDU commands pool */ |
3280 | if (iscsi_pool_init(&session->cmdpool, session->cmds_max, | 3281 | if (iscsi_pool_init(&session->cmdpool, session->cmds_max, |