summaryrefslogtreecommitdiff
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-03-13 16:21:01 +0300
committerMark Brown <broonie@kernel.org>2023-03-13 16:21:01 +0300
commitc938bb0cf644a61cc6222cc6d0f106bb5c4b4ff5 (patch)
tree22e62a91a4674df9043d298994a27acc11830044 /net/unix/unix_bpf.c
parent7d4ae72edba715d8e2dbfb3851879d354d13a7b9 (diff)
parenteeac8ede17557680855031c6f305ece2378af326 (diff)
downloadlinux-c938bb0cf644a61cc6222cc6d0f106bb5c4b4ff5.tar.xz
Merge tag 'v6.3-rc2' into spi-6.4 to fix clock related boot issues
Linux 6.3-rc2
Diffstat (limited to 'net/unix/unix_bpf.c')
-rw-r--r--net/unix/unix_bpf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/unix/unix_bpf.c b/net/unix/unix_bpf.c
index e9bf15513961..2f9d8271c6ec 100644
--- a/net/unix/unix_bpf.c
+++ b/net/unix/unix_bpf.c
@@ -54,6 +54,9 @@ static int unix_bpf_recvmsg(struct sock *sk, struct msghdr *msg,
struct sk_psock *psock;
int copied;
+ if (!len)
+ return 0;
+
psock = sk_psock_get(sk);
if (unlikely(!psock))
return __unix_recvmsg(sk, msg, len, flags);