diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2013-10-23 09:28:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-25 19:03:39 -0400 |
commit | 974daef7f8bb5d7be78fae3a240fcce43cae0135 (patch) | |
tree | 62e916f9e527b96395f7eb549f18410d62ab9b0e /net/core | |
parent | 4a3ad7b3eade08ad1c760aaa4fe06a36f2584939 (diff) |
net: add missing dev_put() in __netdev_adjacent_dev_insert
I think that a dev_put() is needed in the error path to preserve the
proper dev refcount.
CC: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 0918aadc20fd..bdffd654edc4 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -4648,6 +4648,7 @@ remove_symlinks: | |||
4648 | 4648 | ||
4649 | free_adj: | 4649 | free_adj: |
4650 | kfree(adj); | 4650 | kfree(adj); |
4651 | dev_put(adj_dev); | ||
4651 | 4652 | ||
4652 | return ret; | 4653 | return ret; |
4653 | } | 4654 | } |