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>
This commit is contained in:
Nikolay Aleksandrov 2013-10-23 15:28:56 +02:00 committed by David S. Miller
parent 4a3ad7b3ea
commit 974daef7f8
1 changed files with 1 additions and 0 deletions

View File

@ -4648,6 +4648,7 @@ remove_symlinks:
free_adj:
kfree(adj);
dev_put(adj_dev);
return ret;
}