diff options
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index ddb838a1b74c..e68d7454f2e3 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -2040,8 +2040,8 @@ static int unix_dgram_recvmsg(struct socket *sock, struct msghdr *msg, | |||
2040 | struct unix_sock *u = unix_sk(sk); | 2040 | struct unix_sock *u = unix_sk(sk); |
2041 | struct sk_buff *skb, *last; | 2041 | struct sk_buff *skb, *last; |
2042 | long timeo; | 2042 | long timeo; |
2043 | int skip; | ||
2043 | int err; | 2044 | int err; |
2044 | int peeked, skip; | ||
2045 | 2045 | ||
2046 | err = -EOPNOTSUPP; | 2046 | err = -EOPNOTSUPP; |
2047 | if (flags&MSG_OOB) | 2047 | if (flags&MSG_OOB) |
@@ -2053,8 +2053,8 @@ static int unix_dgram_recvmsg(struct socket *sock, struct msghdr *msg, | |||
2053 | mutex_lock(&u->iolock); | 2053 | mutex_lock(&u->iolock); |
2054 | 2054 | ||
2055 | skip = sk_peek_offset(sk, flags); | 2055 | skip = sk_peek_offset(sk, flags); |
2056 | skb = __skb_try_recv_datagram(sk, flags, NULL, &peeked, &skip, | 2056 | skb = __skb_try_recv_datagram(sk, flags, NULL, &skip, &err, |
2057 | &err, &last); | 2057 | &last); |
2058 | if (skb) | 2058 | if (skb) |
2059 | break; | 2059 | break; |
2060 | 2060 | ||