diff options
Diffstat (limited to 'net/dccp/output.c')
-rw-r--r-- | net/dccp/output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/dccp/output.c b/net/dccp/output.c index 3d7d628d870d..1f8a9b64c083 100644 --- a/net/dccp/output.c +++ b/net/dccp/output.c | |||
@@ -347,7 +347,7 @@ struct sk_buff *dccp_make_response(struct sock *sk, struct dst_entry *dst, | |||
347 | EXPORT_SYMBOL_GPL(dccp_make_response); | 347 | EXPORT_SYMBOL_GPL(dccp_make_response); |
348 | 348 | ||
349 | /* answer offending packet in @rcv_skb with Reset from control socket @ctl */ | 349 | /* answer offending packet in @rcv_skb with Reset from control socket @ctl */ |
350 | struct sk_buff *dccp_ctl_make_reset(struct socket *ctl, struct sk_buff *rcv_skb) | 350 | struct sk_buff *dccp_ctl_make_reset(struct sock *sk, struct sk_buff *rcv_skb) |
351 | { | 351 | { |
352 | struct dccp_hdr *rxdh = dccp_hdr(rcv_skb), *dh; | 352 | struct dccp_hdr *rxdh = dccp_hdr(rcv_skb), *dh; |
353 | struct dccp_skb_cb *dcb = DCCP_SKB_CB(rcv_skb); | 353 | struct dccp_skb_cb *dcb = DCCP_SKB_CB(rcv_skb); |
@@ -357,11 +357,11 @@ struct sk_buff *dccp_ctl_make_reset(struct socket *ctl, struct sk_buff *rcv_skb) | |||
357 | struct dccp_hdr_reset *dhr; | 357 | struct dccp_hdr_reset *dhr; |
358 | struct sk_buff *skb; | 358 | struct sk_buff *skb; |
359 | 359 | ||
360 | skb = alloc_skb(ctl->sk->sk_prot->max_header, GFP_ATOMIC); | 360 | skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); |
361 | if (skb == NULL) | 361 | if (skb == NULL) |
362 | return NULL; | 362 | return NULL; |
363 | 363 | ||
364 | skb_reserve(skb, ctl->sk->sk_prot->max_header); | 364 | skb_reserve(skb, sk->sk_prot->max_header); |
365 | 365 | ||
366 | /* Swap the send and the receive. */ | 366 | /* Swap the send and the receive. */ |
367 | dh = dccp_zeroed_hdr(skb, dccp_hdr_reset_len); | 367 | dh = dccp_zeroed_hdr(skb, dccp_hdr_reset_len); |