| From b68b47cb6a29791c2ad43a5fab2dbcd19014efee Mon Sep 17 00:00:00 2001 |
| From: Jakub Kicinski <kuba@kernel.org> |
| Date: Mon, 2 Mar 2020 21:05:23 -0800 |
| Subject: [PATCH] tipc: add missing attribute validation for MTU property |
| |
| commit 213320a67962ff6e7b83b704d55cbebc341426db upstream. |
| |
| 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> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c |
| index 99bd166bccec..e8a0d068f0f3 100644 |
| --- a/net/tipc/netlink.c |
| +++ b/net/tipc/netlink.c |
| @@ -111,6 +111,7 @@ const struct nla_policy tipc_nl_prop_policy[TIPC_NLA_PROP_MAX + 1] = { |
| [TIPC_NLA_PROP_PRIO] = { .type = NLA_U32 }, |
| [TIPC_NLA_PROP_TOL] = { .type = NLA_U32 }, |
| [TIPC_NLA_PROP_WIN] = { .type = NLA_U32 }, |
| + [TIPC_NLA_PROP_MTU] = { .type = NLA_U32 }, |
| [TIPC_NLA_PROP_BROADCAST] = { .type = NLA_U32 }, |
| [TIPC_NLA_PROP_BROADCAST_RATIO] = { .type = NLA_U32 } |
| }; |
| -- |
| 2.7.4 |
| |