o decnet: use revised net module infrastructure

Using sk_set_owner and having THIS_MODULE in the struct proto_ops registered
with the core.
parent 782790ec
...@@ -485,6 +485,7 @@ struct sock *dn_alloc_sock(struct socket *sock, int gfp) ...@@ -485,6 +485,7 @@ struct sock *dn_alloc_sock(struct socket *sock, int gfp)
if (sock) if (sock)
sock->ops = &dn_proto_ops; sock->ops = &dn_proto_ops;
sock_init_data(sock, sk); sock_init_data(sock, sk);
sk_set_owner(sk, THIS_MODULE);
sk->backlog_rcv = dn_nsp_backlog_rcv; sk->backlog_rcv = dn_nsp_backlog_rcv;
sk->destruct = dn_destruct; sk->destruct = dn_destruct;
...@@ -2235,7 +2236,7 @@ static struct net_proto_family dn_family_ops = { ...@@ -2235,7 +2236,7 @@ static struct net_proto_family dn_family_ops = {
static struct proto_ops dn_proto_ops = { static struct proto_ops dn_proto_ops = {
.family = AF_DECnet, .family = AF_DECnet,
.owner = THIS_MODULE,
.release = dn_release, .release = dn_release,
.bind = dn_bind, .bind = dn_bind,
.connect = dn_connect, .connect = dn_connect,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment