diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-06-10 09:17:19 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-12 01:14:03 +0300 |
| commit | 2821e85c058f81c9948a2fb1a634f7b47457d51c (patch) | |
| tree | 68e9ded362f704151cbdb8eb43b68cfb78a7eff8 /include/linux/timerqueue.h | |
| parent | 06b693d2eb6651a63ad85bad8673de3b7d4edd6d (diff) | |
| download | linux-2821e85c058f81c9948a2fb1a634f7b47457d51c.tar.xz | |
net: fib_rules: Don't dump dying fib_rule in fib_rules_dump().
rocker_router_fib_event() calls fib_rule_get() during RCU dump.
If the fib_rule is dying, refcount_inc() will complain about it.
Let's call refcount_inc_not_zero() in fib_rules_dump().
Fixes: 5d7bfd141924 ("ipv4: fib_rules: Dump FIB rules when registering FIB notifier")
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20260610061744.2030996-3-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
