summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/iscsi/icl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/iscsi/icl.c b/sys/dev/iscsi/icl.c
index 20b184c..464f339 100644
--- a/sys/dev/iscsi/icl.c
+++ b/sys/dev/iscsi/icl.c
@@ -669,7 +669,10 @@ icl_conn_receive_pdu(struct icl_conn *ic, size_t *availablep)
}
if (error != 0) {
- icl_pdu_free(request);
+ /*
+ * Don't free the PDU; it's pointed to by ic->ic_receive_pdu
+ * and will get freed in icl_conn_close().
+ */
icl_conn_fail(ic);
}
OpenPOWER on IntegriCloud