diff options
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r-- | net/sctp/ulpqueue.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index dd53daab4a25..97fae53310e0 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
@@ -60,6 +60,7 @@ struct sctp_ulpq *sctp_ulpq_init(struct sctp_ulpq *ulpq, | |||
60 | 60 | ||
61 | ulpq->asoc = asoc; | 61 | ulpq->asoc = asoc; |
62 | skb_queue_head_init(&ulpq->reasm); | 62 | skb_queue_head_init(&ulpq->reasm); |
63 | skb_queue_head_init(&ulpq->reasm_uo); | ||
63 | skb_queue_head_init(&ulpq->lobby); | 64 | skb_queue_head_init(&ulpq->lobby); |
64 | ulpq->pd_mode = 0; | 65 | ulpq->pd_mode = 0; |
65 | 66 | ||
@@ -83,6 +84,10 @@ void sctp_ulpq_flush(struct sctp_ulpq *ulpq) | |||
83 | sctp_ulpevent_free(event); | 84 | sctp_ulpevent_free(event); |
84 | } | 85 | } |
85 | 86 | ||
87 | while ((skb = __skb_dequeue(&ulpq->reasm_uo)) != NULL) { | ||
88 | event = sctp_skb2event(skb); | ||
89 | sctp_ulpevent_free(event); | ||
90 | } | ||
86 | } | 91 | } |
87 | 92 | ||
88 | /* Dispose of a ulpqueue. */ | 93 | /* Dispose of a ulpqueue. */ |