aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 0d420790b795..775eaa3d0c49 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -207,7 +207,6 @@ EXPORT_SYMBOL_GPL(dccp_init_sock);
207void dccp_destroy_sock(struct sock *sk) 207void dccp_destroy_sock(struct sock *sk)
208{ 208{
209 struct dccp_sock *dp = dccp_sk(sk); 209 struct dccp_sock *dp = dccp_sk(sk);
210 struct dccp_minisock *dmsk = dccp_msk(sk);
211 210
212 /* 211 /*
213 * DCCP doesn't use sk_write_queue, just sk_send_head 212 * DCCP doesn't use sk_write_queue, just sk_send_head
@@ -225,7 +224,7 @@ void dccp_destroy_sock(struct sock *sk)
225 kfree(dp->dccps_service_list); 224 kfree(dp->dccps_service_list);
226 dp->dccps_service_list = NULL; 225 dp->dccps_service_list = NULL;
227 226
228 if (dmsk->dccpms_send_ack_vector) { 227 if (dp->dccps_hc_rx_ackvec != NULL) {
229 dccp_ackvec_free(dp->dccps_hc_rx_ackvec); 228 dccp_ackvec_free(dp->dccps_hc_rx_ackvec);
230 dp->dccps_hc_rx_ackvec = NULL; 229 dp->dccps_hc_rx_ackvec = NULL;
231 } 230 }