]> www.infradead.org Git - users/dwmw2/linux.git/commit
phonet: Pass ifindex to fill_route().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Thu, 17 Oct 2024 18:31:37 +0000 (11:31 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 24 Oct 2024 14:03:40 +0000 (16:03 +0200)
commit302fc6bbcba4beee6ff5e73c2fcc257e62667d4d
treec802d0fdb43f3e5bbd96538052d7fa0f027b9d7f
parentb7d2fc9ad7fe75b536f94409b7f1e90e12e4f44d
phonet: Pass ifindex to fill_route().

We will convert route_doit() to RCU.

route_doit() will call rtm_phonet_notify() outside of RCU due
to GFP_KERNEL, so dev will not be available in fill_route().

Let's pass ifindex directly to fill_route().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/phonet/pn_netlink.c