]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
tipc: add policy for TIPC_NLA_NET_ADDR
authorEric Dumazet <edumazet@google.com>
Mon, 16 Apr 2018 15:29:42 +0000 (08:29 -0700)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:37 +0000 (21:36 -0400)
[ 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 <edumazet@google.com>
Cc: Jon Maloy <jon.maloy@ericsson.com>
Cc: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
net/tipc/net.c

index a54f3cbe2246c8daff5d89923f31e09c2e082098..64ead4f47b70144e0f58ec120887d98f8b212926 100644 (file)
@@ -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 },
 };
 
 /*