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

net: convert fib_treeref from int to refcount_t



refcount_t type should be used instead of int when fib_treeref is used as
a reference counter,and avoid use-after-free risks.

Signed-off-by: default avatarYajun Deng <yajun.deng@linux.dev>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20210729071350.28919-1-yajun.deng@linux.dev


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