From: Eric Dumazet Date: Mon, 16 Apr 2018 15:29:42 +0000 (-0700) Subject: tipc: add policy for TIPC_NLA_NET_ADDR X-Git-Tag: v4.1.52~63 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=46948044f3cfaba9a978c599c6522123a07d591b;p=users%2Fdwmw2%2Flinux.git tipc: add policy for TIPC_NLA_NET_ADDR [ Upstream commit ec518f21cb1a1b1f8a516499ea05c60299e04963 ] Before syzbot/KMSAN bites, add the missing policy for TIPC_NLA_NET_ADDR Fixes: 27c21416727a ("tipc: add net set to new netlink api") Signed-off-by: Eric Dumazet Cc: Jon Maloy Cc: Ying Xue Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- diff --git a/net/tipc/net.c b/net/tipc/net.c index a54f3cbe2246c..64ead4f47b701 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c @@ -43,7 +43,8 @@ static const struct nla_policy tipc_nl_net_policy[TIPC_NLA_NET_MAX + 1] = { [TIPC_NLA_NET_UNSPEC] = { .type = NLA_UNSPEC }, - [TIPC_NLA_NET_ID] = { .type = NLA_U32 } + [TIPC_NLA_NET_ID] = { .type = NLA_U32 }, + [TIPC_NLA_NET_ADDR] = { .type = NLA_U32 }, }; /*