Skip to content
Commit 5dcd8400 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

macsec: missing dev_put() on error in macsec_newlink()



We moved the dev_hold(real_dev); call earlier in the function but forgot
to update the error paths.

Fixes: 0759e552 ("macsec: fix negative refcnt on parent link")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0645d9b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment