Skip to content

Commit 2eb2756

Browse files
Alexander AringStefan-Schmidt
authored andcommitted
Revert "net/ieee802154: reject zero-sized raw_sendmsg()"
This reverts commit 3a4d061. There is a v2 which does return zero if zero length is given. Signed-off-by: Alexander Aring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stefan Schmidt <[email protected]>
1 parent 0326074 commit 2eb2756

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/ieee802154/socket.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,6 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
251251
return -EOPNOTSUPP;
252252
}
253253

254-
if (!size)
255-
return -EINVAL;
256-
257254
lock_sock(sk);
258255
if (!sk->sk_bound_dev_if)
259256
dev = dev_getfirstbyhwtype(sock_net(sk), ARPHRD_IEEE802154);

0 commit comments

Comments
 (0)