Fix crash on removal of an unconnected iSER session.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
4f3b84b524
commit
4686f1a660
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300734
@ -220,6 +220,9 @@ iser_conn_pdu_queue(struct icl_conn *ic, struct icl_pdu *ip)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user