diff options
-rw-r--r-- | net/dccp/dccp.h | 2 | ||||
-rw-r--r-- | net/dccp/ipv4.c | 1 | ||||
-rw-r--r-- | net/dccp/ipv6.c | 1 | ||||
-rw-r--r-- | net/dccp/proto.c | 2 |
4 files changed, 5 insertions, 1 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index ab096c06bba0..dee4a90886d6 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
@@ -442,6 +442,8 @@ static inline int dccp_ack_pending(const struct sock *sk) | |||
442 | inet_csk_ack_scheduled(sk); | 442 | inet_csk_ack_scheduled(sk); |
443 | } | 443 | } |
444 | 444 | ||
445 | extern void dccp_feat_list_purge(struct list_head *fn_list); | ||
446 | |||
445 | extern int dccp_insert_options(struct sock *sk, struct sk_buff *skb); | 447 | extern int dccp_insert_options(struct sock *sk, struct sk_buff *skb); |
446 | extern int dccp_insert_options_rsk(struct dccp_request_sock*, struct sk_buff*); | 448 | extern int dccp_insert_options_rsk(struct dccp_request_sock*, struct sk_buff*); |
447 | extern int dccp_insert_option_elapsed_time(struct sock *sk, | 449 | extern int dccp_insert_option_elapsed_time(struct sock *sk, |
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 0ce84ea89119..b623f6b25482 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
@@ -545,6 +545,7 @@ out: | |||
545 | 545 | ||
546 | static void dccp_v4_reqsk_destructor(struct request_sock *req) | 546 | static void dccp_v4_reqsk_destructor(struct request_sock *req) |
547 | { | 547 | { |
548 | dccp_feat_list_purge(&dccp_rsk(req)->dreq_featneg); | ||
548 | kfree(inet_rsk(req)->opt); | 549 | kfree(inet_rsk(req)->opt); |
549 | } | 550 | } |
550 | 551 | ||
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 33e8a1ea3041..ad6212e00435 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
@@ -302,6 +302,7 @@ done: | |||
302 | 302 | ||
303 | static void dccp_v6_reqsk_destructor(struct request_sock *req) | 303 | static void dccp_v6_reqsk_destructor(struct request_sock *req) |
304 | { | 304 | { |
305 | dccp_feat_list_purge(&dccp_rsk(req)->dreq_featneg); | ||
305 | if (inet6_rsk(req)->pktopts != NULL) | 306 | if (inet6_rsk(req)->pktopts != NULL) |
306 | kfree_skb(inet6_rsk(req)->pktopts); | 307 | kfree_skb(inet6_rsk(req)->pktopts); |
307 | } | 308 | } |
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 1cdf4ae99605..dafcefd86594 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -268,7 +268,7 @@ void dccp_destroy_sock(struct sock *sk) | |||
268 | dp->dccps_hc_rx_ccid = dp->dccps_hc_tx_ccid = NULL; | 268 | dp->dccps_hc_rx_ccid = dp->dccps_hc_tx_ccid = NULL; |
269 | 269 | ||
270 | /* clean up feature negotiation state */ | 270 | /* clean up feature negotiation state */ |
271 | dccp_feat_clean(dmsk); | 271 | dccp_feat_list_purge(&dp->dccps_featneg); |
272 | } | 272 | } |
273 | 273 | ||
274 | EXPORT_SYMBOL_GPL(dccp_destroy_sock); | 274 | EXPORT_SYMBOL_GPL(dccp_destroy_sock); |