]> git.baikalelectronics.ru Git - kernel.git/commit
macsec: missing dev_put() on error in macsec_newlink()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Mar 2018 08:09:01 +0000 (11:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 18:30:36 +0000 (14:30 -0400)
commit8d38f14b34766f8d3872c2766e1f135f61cb0357
tree6ffd19f1f6b32995583adacc662a3faf9d424e74
parente340e782dfcd9b94dbe9245a5ab2d3fe474532a0
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: 8ba219aae0c1 ("macsec: fix negative refcnt on parent link")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c