aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/picoxcell_crypto.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2016-07-29 15:37:55 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-30 21:11:08 -0700
commit0759e552bce7257db542e203a01a9ef8843c751e (patch)
tree93c36c2d45305788c3c869bd9d636dbaaa3a70f7 /drivers/crypto/picoxcell_crypto.c
parentmacsec: RXSAs don't need to hold a reference on RXSCs (diff)
downloadlinux-dev-0759e552bce7257db542e203a01a9ef8843c751e.tar.xz
linux-dev-0759e552bce7257db542e203a01a9ef8843c751e.zip
macsec: fix negative refcnt on parent link
When creation of a macsec device fails because an identical device already exists on this link, the current code decrements the refcnt on the parent link (in ->destructor for the macsec device), but it had not been incremented yet. Move the dev_hold(parent_link) call earlier during macsec device creation. 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>
Diffstat (limited to 'drivers/crypto/picoxcell_crypto.c')
0 files changed, 0 insertions, 0 deletions