summaryrefslogtreecommitdiff
path: root/net/tipc/diag.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-01-22 11:25:59 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:32:09 +0100
commit37103a9d7f128f5c876d87aedd43baa8ebe6cc9b (patch)
tree94ae4c48bf3b0f5c25a96f86149039f3f3a2cf27 /net/tipc/diag.c
parent5ef3e03228e16c11f79cb4e1d16edd3f4c8bf0f2 (diff)
sock_diag: add module pointer to "struct sock_diag_handler"
[ Upstream commit 114b4bb1cc19239b272d52ebbe156053483fe2f8 ] Following patch is going to use RCU instead of sock_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> Stable-dep-of: eb02688c5c45 ("ipv6: release nexthop on device removal") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/tipc/diag.c')
-rw-r--r--net/tipc/diag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/diag.c b/net/tipc/diag.c
index 73137f4aeb68..11da9d2ebbf6 100644
--- a/net/tipc/diag.c
+++ b/net/tipc/diag.c
@@ -95,6 +95,7 @@ static int tipc_sock_diag_handler_dump(struct sk_buff *skb,
}
static const struct sock_diag_handler tipc_sock_diag_handler = {
+ .owner = THIS_MODULE,
.family = AF_TIPC,
.dump = tipc_sock_diag_handler_dump,
};