mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
Revert "net/ieee802154: reject zero-sized raw_sendmsg()"
[ Upstream commit2eb2756f6c] This reverts commit3a4d061c69. 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
dc54ff9fc4
commit
a96336a5f2
|
|
@ -252,9 +252,6 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!size)
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
lock_sock(sk);
|
lock_sock(sk);
|
||||||
if (!sk->sk_bound_dev_if)
|
if (!sk->sk_bound_dev_if)
|
||||||
dev = dev_getfirstbyhwtype(sock_net(sk), ARPHRD_IEEE802154);
|
dev = dev_getfirstbyhwtype(sock_net(sk), ARPHRD_IEEE802154);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user