macsec: fix use-after-free of skb during RX
authorAndreas Steinmetz <ast@domdv.de>
Sun, 30 Jun 2019 20:46:42 +0000 (22:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 21:12:29 +0000 (14:12 -0700)
commit095c02da80a41cf6d311c504d8955d6d1c2add10
tree1b6afb475f0c060e5c0390025d8cd1e19ef1f0ff
parente835ada07091f40dcfb1bc735082bd0a7c005e59
macsec: fix use-after-free of skb during RX

Fix use-after-free of skb when rx_handler returns RX_HANDLER_PASS.

Signed-off-by: Andreas Steinmetz <ast@domdv.de>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c