]> git.baikalelectronics.ru Git - kernel.git/commit
net: decnet: Fix refcount warning for new dn_fib_info
authorYajun Deng <yajun.deng@linux.dev>
Tue, 3 Aug 2021 07:37:39 +0000 (15:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Aug 2021 21:23:22 +0000 (14:23 -0700)
commit4a9c103a347c84fae47b30d298e40ce7f46f6664
treecbdff8a5bf2c94c55f7492ec77a42bfe95dba932
parentc4273d58df50991a470737d3164fdd2d3cf37a94
net: decnet: Fix refcount warning for new dn_fib_info

fib_treeref needs to be set after kzalloc. The old code had a ++ which
led to the confusion when the int was replaced by a refcount_t.

Fixes: 3503f17ee93e ("net: convert fib_treeref from int to refcount_t")
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20210803073739.22339-1-yajun.deng@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/decnet/dn_fib.c