aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-04-16 07:07:17 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-17 14:13:02 -0400
commitc1db7a26ac3f7223a38eaeb46a77d0cf9e6a0d8f (patch)
tree458dceabab609cc738af0b5f58227806eff47288 /net/sctp
parent50181c07cbde370986c4925b830ca291a2fc31ab (diff)
net: sctp: sctp_ulpq: remove 'malloced' struct member
The structure sctp_ulpq is embedded into sctp_association and never separately allocated, also ulpq->malloced is always 0, so that kfree() is never called. Therefore, remove this code. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-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. */