Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
@ -509,9 +509,7 @@ int sk_set_peek_off(struct sock *sk, int val);
|
||||
static inline int sk_peek_offset(struct sock *sk, int flags)
|
||||
{
|
||||
if (unlikely(flags & MSG_PEEK)) {
|
||||
s32 off = READ_ONCE(sk->sk_peek_off);
|
||||
if (off >= 0)
|
||||
return off;
|
||||
return READ_ONCE(sk->sk_peek_off);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user