]> git.baikalelectronics.ru Git - kernel.git/commit
macsec: fix netlink attribute validation
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 22 Apr 2016 09:28:09 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Apr 2016 18:31:59 +0000 (14:31 -0400)
commita0f1ed5d71e5f13715304f2253b602fcd83b51fd
tree5f64306347f47ef4b657f43a661a71bb907c0b4d
parentf93d33792df632d30a55dd4aed3f6043fe5e40ba
macsec: fix netlink attribute validation

macsec_validate_attr should check IFLA_MACSEC_REPLAY_PROTECT (not
IFLA_MACSEC_PROTECT) to verify that the replay protection and replay
window arguments are correct.

Fixes: 4f0c7417cca8 ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c