diff options
Diffstat (limited to 'net/unix')
| -rw-r--r-- | net/unix/af_unix.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index b0b97f8d0d09..07f5eaa04b5b 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -2618,7 +2618,7 @@ static struct sk_buff *manage_oob(struct sk_buff *skb, struct sock *sk,  		spin_lock(&sk->sk_receive_queue.lock); -		if (copied) { +		if (copied && (!u->oob_skb || skb == u->oob_skb)) {  			skb = NULL;  		} else if (flags & MSG_PEEK) {  			skb = skb_peek_next(skb, &sk->sk_receive_queue); | 
