diff options
Diffstat (limited to 'net/rxrpc/af_rxrpc.c')
-rw-r--r-- | net/rxrpc/af_rxrpc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index a86afceaa94f..c060095b27ce 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/net.h> | 13 | #include <linux/net.h> |
14 | #include <linux/slab.h> | ||
14 | #include <linux/skbuff.h> | 15 | #include <linux/skbuff.h> |
15 | #include <linux/poll.h> | 16 | #include <linux/poll.h> |
16 | #include <linux/proc_fs.h> | 17 | #include <linux/proc_fs.h> |
@@ -608,14 +609,15 @@ static unsigned int rxrpc_poll(struct file *file, struct socket *sock, | |||
608 | /* | 609 | /* |
609 | * create an RxRPC socket | 610 | * create an RxRPC socket |
610 | */ | 611 | */ |
611 | static int rxrpc_create(struct net *net, struct socket *sock, int protocol) | 612 | static int rxrpc_create(struct net *net, struct socket *sock, int protocol, |
613 | int kern) | ||
612 | { | 614 | { |
613 | struct rxrpc_sock *rx; | 615 | struct rxrpc_sock *rx; |
614 | struct sock *sk; | 616 | struct sock *sk; |
615 | 617 | ||
616 | _enter("%p,%d", sock, protocol); | 618 | _enter("%p,%d", sock, protocol); |
617 | 619 | ||
618 | if (net != &init_net) | 620 | if (!net_eq(net, &init_net)) |
619 | return -EAFNOSUPPORT; | 621 | return -EAFNOSUPPORT; |
620 | 622 | ||
621 | /* we support transport protocol UDP only */ | 623 | /* we support transport protocol UDP only */ |
@@ -777,7 +779,7 @@ static struct proto rxrpc_proto = { | |||
777 | .max_header = sizeof(struct rxrpc_header), | 779 | .max_header = sizeof(struct rxrpc_header), |
778 | }; | 780 | }; |
779 | 781 | ||
780 | static struct net_proto_family rxrpc_family_ops = { | 782 | static const struct net_proto_family rxrpc_family_ops = { |
781 | .family = PF_RXRPC, | 783 | .family = PF_RXRPC, |
782 | .create = rxrpc_create, | 784 | .create = rxrpc_create, |
783 | .owner = THIS_MODULE, | 785 | .owner = THIS_MODULE, |