Re: [PATCH] macsec: missing dev_put() on error in macsec_newlink()

2018-03-22 Thread David Miller
From: Dan Carpenter Date: Wed, 21 Mar 2018 11:09:01 +0300 > We moved the dev_hold(real_dev); call earlier in the function but forgot > to update the error paths. > > Fixes: 0759e552bce7 ("macsec: fix negative refcnt on parent link") > Signed-off-by: Dan Carpenter Applied and queued up for -sta

[PATCH] macsec: missing dev_put() on error in macsec_newlink()

2018-03-21 Thread Dan Carpenter
We moved the dev_hold(real_dev); call earlier in the function but forgot to update the error paths. Fixes: 0759e552bce7 ("macsec: fix negative refcnt on parent link") Signed-off-by: Dan Carpenter diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 7de88b33d5b9..9cbb0c8a896a 100644 ---