]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 05:50:06 +0000 (07:50 +0200)
[ 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tipc/net.c

index 77bf9113c7a76be7cfc5173bc41b84664eb658e6..2763bd369b7911d6d326a6f414dab43678a6762f 100644 (file)
@@ -44,7 +44,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 },
 };
 
 /*