diff options
| -rw-r--r-- | include/net/sctp/ulpqueue.h | 1 | ||||
| -rw-r--r-- | net/sctp/ulpqueue.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/include/net/sctp/ulpqueue.h b/include/net/sctp/ulpqueue.h index ff1b8ba73ab1..00e50ba3f24b 100644 --- a/include/net/sctp/ulpqueue.h +++ b/include/net/sctp/ulpqueue.h | |||
| @@ -49,7 +49,6 @@ | |||
| 49 | 49 | ||
| 50 | /* A structure to carry information to the ULP (e.g. Sockets API) */ | 50 | /* A structure to carry information to the ULP (e.g. Sockets API) */ |
| 51 | struct sctp_ulpq { | 51 | struct sctp_ulpq { |
| 52 | char malloced; | ||
| 53 | char pd_mode; | 52 | char pd_mode; |
| 54 | struct sctp_association *asoc; | 53 | struct sctp_association *asoc; |
| 55 | struct sk_buff_head reasm; | 54 | struct sk_buff_head reasm; |
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) | |||
| 96 | void sctp_ulpq_free(struct sctp_ulpq *ulpq) | 95 | void 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. */ |
