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