Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2016 11:40:07 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300734 - head/sys/dev/iser
Message-ID:  <201605261140.u4QBe7pj010790@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu May 26 11:40:07 2016
New Revision: 300734
URL: https://svnweb.freebsd.org/changeset/base/300734

Log:
  Fix crash on removal of an unconnected iSER session.
  
  MFC after:	1 month
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/iser/icl_iser.c

Modified: head/sys/dev/iser/icl_iser.c
==============================================================================
--- head/sys/dev/iser/icl_iser.c	Thu May 26 11:38:26 2016	(r300733)
+++ head/sys/dev/iser/icl_iser.c	Thu May 26 11:40:07 2016	(r300734)
@@ -220,6 +220,9 @@ iser_conn_pdu_queue(struct icl_conn *ic,
 	struct icl_iser_pdu *iser_pdu = icl_to_iser_pdu(ip);
 	int ret;
 
+	if (iser_conn->state != ISER_CONN_UP)
+		return;
+
 	ret = iser_initialize_headers(iser_pdu, iser_conn);
 	if (ret) {
 		ISER_ERR("Failed to map TX descriptor pdu %p", iser_pdu);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605261140.u4QBe7pj010790>