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

tipc: add missing attribute validation for MTU property

Add missing attribute validation for TIPC_NLA_PROP_MTU
to the netlink policy.

Fixes: 901271e0403a ("tipc: implement configuration of UDP media MTU")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
213320a6 669fcd77

+1
+1
net/tipc/netlink.c
··· 116 116 [TIPC_NLA_PROP_PRIO] = { .type = NLA_U32 }, 117 117 [TIPC_NLA_PROP_TOL] = { .type = NLA_U32 }, 118 118 [TIPC_NLA_PROP_WIN] = { .type = NLA_U32 }, 119 + [TIPC_NLA_PROP_MTU] = { .type = NLA_U32 }, 119 120 [TIPC_NLA_PROP_BROADCAST] = { .type = NLA_U32 }, 120 121 [TIPC_NLA_PROP_BROADCAST_RATIO] = { .type = NLA_U32 } 121 122 };