Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
This commit is contained in:
commit
6b60d7b9df
1 changed files with 3 additions and 0 deletions
|
@ -2993,6 +2993,9 @@ int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb)
|
|||
skb->destructor = sock_rmem_free;
|
||||
atomic_add(skb->truesize, &sk->sk_rmem_alloc);
|
||||
|
||||
/* before exiting rcu section, make sure dst is refcounted */
|
||||
skb_dst_force(skb);
|
||||
|
||||
skb_queue_tail(&sk->sk_error_queue, skb);
|
||||
if (!sock_flag(sk, SOCK_DEAD))
|
||||
sk->sk_data_ready(sk, skb->len);
|
||||
|
|
Loading…
Reference in a new issue