summaryrefslogtreecommitdiff
path: root/net/ipv4/udp_diag.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-01-22 11:25:57 +0000
committerPaolo Abeni <pabeni@redhat.com>2024-01-23 15:13:54 +0100
commitdb5914695a84a7b128ec2e4e9272e6e8091753e1 (patch)
tree5e9bb2d90f86abfda7814bfd3e38d13a6160510d /net/ipv4/udp_diag.c
parente50e10ae5d81ddb41547114bfdc5edc04422f082 (diff)
downloadlinux-db5914695a84a7b128ec2e4e9272e6e8091753e1.tar.gz
linux-db5914695a84a7b128ec2e4e9272e6e8091753e1.tar.bz2
linux-db5914695a84a7b128ec2e4e9272e6e8091753e1.zip
inet_diag: add module pointer to "struct inet_diag_handler"
Following patch is going to use RCU instead of inet_diag_table_mutex acquisition. This patch is a preparation, no change of behavior yet. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Guillaume Nault <gnault@redhat.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ipv4/udp_diag.c')
-rw-r--r--net/ipv4/udp_diag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c
index dc41a22ee80e..38cb3a28e4ed 100644
--- a/net/ipv4/udp_diag.c
+++ b/net/ipv4/udp_diag.c
@@ -237,6 +237,7 @@ static int udplite_diag_destroy(struct sk_buff *in_skb,
#endif
static const struct inet_diag_handler udp_diag_handler = {
+ .owner = THIS_MODULE,
.dump = udp_diag_dump,
.dump_one = udp_diag_dump_one,
.idiag_get_info = udp_diag_get_info,
@@ -260,6 +261,7 @@ static int udplite_diag_dump_one(struct netlink_callback *cb,
}
static const struct inet_diag_handler udplite_diag_handler = {
+ .owner = THIS_MODULE,
.dump = udplite_diag_dump,
.dump_one = udplite_diag_dump_one,
.idiag_get_info = udp_diag_get_info,