aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ulpqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r--net/sctp/ulpqueue.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c
index 0fd5b3d2df03..04e3d470f877 100644
--- a/net/sctp/ulpqueue.c
+++ b/net/sctp/ulpqueue.c
@@ -68,7 +68,6 @@ struct sctp_ulpq *sctp_ulpq_init(struct sctp_ulpq *ulpq,
68 skb_queue_head_init(&ulpq->reasm); 68 skb_queue_head_init(&ulpq->reasm);
69 skb_queue_head_init(&ulpq->lobby); 69 skb_queue_head_init(&ulpq->lobby);
70 ulpq->pd_mode = 0; 70 ulpq->pd_mode = 0;
71 ulpq->malloced = 0;
72 71
73 return ulpq; 72 return ulpq;
74} 73}
@@ -96,8 +95,6 @@ void sctp_ulpq_flush(struct sctp_ulpq *ulpq)
96void sctp_ulpq_free(struct sctp_ulpq *ulpq) 95void sctp_ulpq_free(struct sctp_ulpq *ulpq)
97{ 96{
98 sctp_ulpq_flush(ulpq); 97 sctp_ulpq_flush(ulpq);
99 if (ulpq->malloced)
100 kfree(ulpq);
101} 98}
102 99
103/* Process an incoming DATA chunk. */ 100/* Process an incoming DATA chunk. */