Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/rocker/rocker.c The rocker commit was two overlapping changes, one to rename the ->vport member to ->pport, and another making the bitmask expression use '1ULL' instead of plain '1'. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -3620,13 +3620,14 @@ struct sk_buff *sock_dequeue_err_skb(struct sock *sk)
|
||||
{
|
||||
struct sk_buff_head *q = &sk->sk_error_queue;
|
||||
struct sk_buff *skb, *skb_next;
|
||||
unsigned long flags;
|
||||
int err = 0;
|
||||
|
||||
spin_lock_bh(&q->lock);
|
||||
spin_lock_irqsave(&q->lock, flags);
|
||||
skb = __skb_dequeue(q);
|
||||
if (skb && (skb_next = skb_peek(q)))
|
||||
err = SKB_EXT_ERR(skb_next)->ee.ee_errno;
|
||||
spin_unlock_bh(&q->lock);
|
||||
spin_unlock_irqrestore(&q->lock, flags);
|
||||
|
||||
sk->sk_err = err;
|
||||
if (err)
|
||||
|
Reference in New Issue
Block a user