Skip to content
Commit bebc3bbf authored by Yajun Deng's avatar Yajun Deng Committed by Jakub Kicinski
Browse files

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: 79976892 ("net: convert fib_treeref from int to refcount_t")
Signed-off-by: default avatarYajun Deng <yajun.deng@linux.dev>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20210803073739.22339-1-yajun.deng@linux.dev


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c8f6c77d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment