diff options
| author | Eric Dumazet <edumazet@google.com> | 2018-04-16 08:29:42 -0700 |
|---|---|---|
| committer | Sasha Levin <alexander.levin@microsoft.com> | 2018-05-22 21:36:37 -0400 |
| commit | 46948044f3cfaba9a978c599c6522123a07d591b (patch) | |
| tree | a870aa8576143de459855fc9012782b87b285b16 | |
| parent | 0c2d5fe37ceafa3cdd8416728e789224a726f7e6 (diff) | |
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 <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>
| -rw-r--r-- | net/tipc/net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index a54f3cbe2246..64ead4f47b70 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 }, }; /* |
