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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:46 +0000 (07:28 +0200)
commit2e8768f34668a21ebc3fcc865abf0bd34c843d3f
tree0626072edc840ea89166d2f38db1afe7a36e6005
parente114a080353c1b19bd003e1b3b6904666c3b4f64
macsec: fix use-after-free of skb during RX

[ Upstream commit 095c02da80a41cf6d311c504d8955d6d1c2add10 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/macsec.c