Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5390f5f authored by Mike Christie's avatar Mike Christie Committed by James Bottomley
Browse files

[SCSI] iscsi_tcp: update header size during relogin



When we relogin to a target, we have not yet negotiated digests
so we must reset the hdr_size var.

Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 753e7d38
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1827,9 +1827,11 @@ static void
iscsi_tcp_conn_stop(struct iscsi_cls_conn *cls_conn, int flag)
{
	struct iscsi_conn *conn = cls_conn->dd_data;
	struct iscsi_tcp_conn *tcp_conn = conn->dd_data;

	iscsi_conn_stop(cls_conn, flag);
	iscsi_tcp_release_conn(conn);
	tcp_conn->hdr_size = sizeof(struct iscsi_hdr);
}

static int