diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/sock.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 2714811afbd8..f7f2352200ad 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -437,7 +437,6 @@ static void sock_disable_timestamp(struct sock *sk, unsigned long flags) | |||
437 | int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) | 437 | int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) |
438 | { | 438 | { |
439 | int err; | 439 | int err; |
440 | int skb_len; | ||
441 | unsigned long flags; | 440 | unsigned long flags; |
442 | struct sk_buff_head *list = &sk->sk_receive_queue; | 441 | struct sk_buff_head *list = &sk->sk_receive_queue; |
443 | 442 | ||
@@ -459,13 +458,6 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) | |||
459 | skb->dev = NULL; | 458 | skb->dev = NULL; |
460 | skb_set_owner_r(skb, sk); | 459 | skb_set_owner_r(skb, sk); |
461 | 460 | ||
462 | /* Cache the SKB length before we tack it onto the receive | ||
463 | * queue. Once it is added it no longer belongs to us and | ||
464 | * may be freed by other threads of control pulling packets | ||
465 | * from the queue. | ||
466 | */ | ||
467 | skb_len = skb->len; | ||
468 | |||
469 | /* we escape from rcu protected region, make sure we dont leak | 461 | /* we escape from rcu protected region, make sure we dont leak |
470 | * a norefcounted dst | 462 | * a norefcounted dst |
471 | */ | 463 | */ |