From owner-svn-src-head@freebsd.org Thu May 26 11:40:08 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A19C9B4A062; Thu, 26 May 2016 11:40:08 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EF7413B9; Thu, 26 May 2016 11:40:08 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4QBe7Ae010791; Thu, 26 May 2016 11:40:07 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4QBe7pj010790; Thu, 26 May 2016 11:40:07 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201605261140.u4QBe7pj010790@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Thu, 26 May 2016 11:40:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300734 - head/sys/dev/iser X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 11:40:08 -0000 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);