svn commit: r300734 - head/sys/dev/iser
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu May 26 11:40:08 UTC 2016
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);
More information about the svn-src-all
mailing list