]> git.baikalelectronics.ru Git - kernel.git/commit
net: ieee802154: return -EINVAL for unknown addr type
authorAlexander Aring <aahringo@redhat.com>
Thu, 6 Oct 2022 02:02:37 +0000 (22:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Oct 2022 07:42:00 +0000 (08:42 +0100)
commit482ca973ac66559bbaa0c0ab12f5b769e9a59f76
treecd0c798deba2d6f880ba7ce5d1b73ca077d954f6
parent4693e8a5cf1819356053dc883bce0585f8284a0d
net: ieee802154: return -EINVAL for unknown addr type

This patch adds handling to return -EINVAL for an unknown addr type. The
current behaviour is to return 0 as successful but the size of an
unknown addr type is not defined and should return an error like -EINVAL.

Fixes: 3b8d22d8a4dc ("net/ieee802154: fix uninit value bug in dgram_sendmsg")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ieee802154_netdev.h