projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0326074
)
Revert "net/ieee802154: reject zero-sized raw_sendmsg()"
author
Alexander Aring
<aahringo@redhat.com>
Wed, 5 Oct 2022 01:47:49 +0000
(21:47 -0400)
committer
Stefan Schmidt
<stefan@datenfreihafen.org>
Wed, 5 Oct 2022 10:34:07 +0000
(12:34 +0200)
This reverts commit
3a4d061c699bd3eedc80dc97a4b2a2e1af83c6f5
.
There is a v2 which does return zero if zero length is given.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Link:
https://lore.kernel.org/r/20221005014750.3685555-1-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/socket.c
patch
|
blob
|
history
diff --git
a/net/ieee802154/socket.c
b/net/ieee802154/socket.c
index cbd0e2ac4ffe9c2cc5d4ea1186a985e13013d906..7889e1ef7fad6daba421eb23919a4c6602e86b4a 100644
(file)
--- a/
net/ieee802154/socket.c
+++ b/
net/ieee802154/socket.c
@@
-251,9
+251,6
@@
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
return -EOPNOTSUPP;
}
- if (!size)
- return -EINVAL;
-
lock_sock(sk);
if (!sk->sk_bound_dev_if)
dev = dev_getfirstbyhwtype(sock_net(sk), ARPHRD_IEEE802154);