phonet: Pass net and ifindex to rtm_phonet_notify().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Thu, 17 Oct 2024 18:31:38 +0000 (11:31 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 24 Oct 2024 14:03:40 +0000 (16:03 +0200)
commitde51ad08b1177bbbb8b60cb7dd4c3c5dd50d262f
treeaac8a83722e0abb2f31c4f5cca0653e9fe33cca1
parent302fc6bbcba4beee6ff5e73c2fcc257e62667d4d
phonet: Pass net and ifindex to rtm_phonet_notify().

Currently, rtm_phonet_notify() fetches netns and ifindex from dev.

Once route_doit() is converted to RCU, rtm_phonet_notify() will be
called outside of RCU due to GFP_KERNEL, and dev will be unavailable
there.

Let's pass net and ifindex to rtm_phonet_notify().

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