summaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-03-13 13:20:45 +0000
committerMark Brown <broonie@kernel.org>2023-03-13 13:20:45 +0000
commitb9d0bb8f1c2e5dce9b8a54fb77d1af4aa64a4c01 (patch)
tree1e8f106c57c2934eee422f8ee5e59e73015e2dc4 /net/unix/unix_bpf.c
parent5bd73a162bc881dbb98ff9909dd865286852ee2b (diff)
parenteeac8ede17557680855031c6f305ece2378af326 (diff)
downloadlinux-stable-b9d0bb8f1c2e5dce9b8a54fb77d1af4aa64a4c01.tar.gz
linux-stable-b9d0bb8f1c2e5dce9b8a54fb77d1af4aa64a4c01.tar.bz2
linux-stable-b9d0bb8f1c2e5dce9b8a54fb77d1af4aa64a4c01.zip
Merge tag 'v6.3-rc2' into regulator-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);