X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv4%2Fudp.c;h=03c400ca14c5af07db1ab22686d95621b5cc8813;hb=464c4f184ac671c6206d502a67034f9bfe9fe25c;hp=4bc25b46f33ff9138512e5da915d01007048e9d0;hpb=14f7d720bb6cc60be8931ea1a0f547dc1e475b88;p=linux-2.6 diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 4bc25b46f3..03c400ca14 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1430,6 +1430,8 @@ unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait) } +DEFINE_PROTO_INUSE(udp) + struct proto udp_prot = { .name = "UDP", .owner = THIS_MODULE, @@ -1452,6 +1454,7 @@ struct proto udp_prot = { .compat_setsockopt = compat_udp_setsockopt, .compat_getsockopt = compat_udp_getsockopt, #endif + REF_PROTO_INUSE(udp) }; /* ------------------------------------------------------------------------ */