Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nl802154: add missing attribute validation for dev_type

Add missing attribute type validation for IEEE802154_ATTR_DEV_TYPE
to the netlink policy.

Fixes: 90c049b2c6ae ("ieee802154: interface type to be added")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
b60673c4 9322cd7c

+1
+1
net/ieee802154/nl_policy.c
··· 27 27 [IEEE802154_ATTR_BAT_EXT] = { .type = NLA_U8, }, 28 28 [IEEE802154_ATTR_COORD_REALIGN] = { .type = NLA_U8, }, 29 29 [IEEE802154_ATTR_PAGE] = { .type = NLA_U8, }, 30 + [IEEE802154_ATTR_DEV_TYPE] = { .type = NLA_U8, }, 30 31 [IEEE802154_ATTR_COORD_SHORT_ADDR] = { .type = NLA_U16, }, 31 32 [IEEE802154_ATTR_COORD_HW_ADDR] = { .type = NLA_HW_ADDR, }, 32 33 [IEEE802154_ATTR_COORD_PAN_ID] = { .type = NLA_U16, },