commit | c78ebe1df01f4ef3fb07be1359bc34df6708d99c | [log] [tgz] |
---|---|---|
author | Sabrina Dubroca <sd@queasysnail.net> | Fri Jul 29 15:37:53 2016 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sat Jul 30 21:11:08 2016 -0700 |
tree | be33ee0b1d42e22cb638a1941abf6f2c8d2c694e | |
parent | 122e9b71273f9d99ed90d51709674bc69c175fa0 [diff] |
macsec: fix reference counting on RXSC in macsec_handle_frame Currently, we lookup the RXSC without taking a reference on it. The RXSA holds a reference on the RXSC, but the SA and SC could still both disappear before we take a reference on the SA. Take a reference on the RXSC in macsec_handle_frame. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>