diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-02 21:05:17 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-18 07:14:15 +0100 |
commit | 388b9d45aecd19c018ce8f70d9483a7d16e2cda3 (patch) | |
tree | 6d169847ba975c317ffd0ca51097431414d33159 /drivers | |
parent | 89b4332a9f241cf4171f25586072440aaa415f02 (diff) | |
download | linux-stable-388b9d45aecd19c018ce8f70d9483a7d16e2cda3.tar.gz linux-stable-388b9d45aecd19c018ce8f70d9483a7d16e2cda3.tar.bz2 linux-stable-388b9d45aecd19c018ce8f70d9483a7d16e2cda3.zip |
macsec: add missing attribute validation for port
[ Upstream commit 31d9a1c524964bac77b7f9d0a1ac140dc6b57461 ]
Add missing attribute validation for IFLA_MACSEC_PORT
to the netlink policy.
Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/macsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 76dbe5f62932..9a8ec94e8a44 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -2995,6 +2995,7 @@ static const struct device_type macsec_type = { static const struct nla_policy macsec_rtnl_policy[IFLA_MACSEC_MAX + 1] = { [IFLA_MACSEC_SCI] = { .type = NLA_U64 }, + [IFLA_MACSEC_PORT] = { .type = NLA_U16 }, [IFLA_MACSEC_ICV_LEN] = { .type = NLA_U8 }, [IFLA_MACSEC_CIPHER_SUITE] = { .type = NLA_U64 }, [IFLA_MACSEC_WINDOW] = { .type = NLA_U32 }, |