summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2013-10-23 15:28:56 +0200
committerDavid S. Miller <davem@davemloft.net>2013-10-25 19:03:39 -0400
commit974daef7f8bb5d7be78fae3a240fcce43cae0135 (patch)
tree62e916f9e527b96395f7eb549f18410d62ab9b0e /net/core
parent4a3ad7b3eade08ad1c760aaa4fe06a36f2584939 (diff)
downloadlinux-974daef7f8bb5d7be78fae3a240fcce43cae0135.tar.bz2
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.c1
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:
free_adj:
kfree(adj);
+ dev_put(adj_dev);
return ret;
}