Explorar o código

rxrpc: The protocol family should be set to PF_RXRPC not PF_UNIX

Fix the protocol family set in the proto_ops for rxrpc to be PF_RXRPC not
PF_UNIX.

Signed-off-by: David Howells <dhowells@redhat.com>
David Howells %!s(int64=9) %!d(string=hai) anos
pai
achega
e33b3d97bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/rxrpc/af_rxrpc.c

+ 1 - 1
net/rxrpc/af_rxrpc.c

@@ -748,7 +748,7 @@ static int rxrpc_release(struct socket *sock)
  * RxRPC network protocol
  * RxRPC network protocol
  */
  */
 static const struct proto_ops rxrpc_rpc_ops = {
 static const struct proto_ops rxrpc_rpc_ops = {
-	.family		= PF_UNIX,
+	.family		= PF_RXRPC,
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,
 	.release	= rxrpc_release,
 	.release	= rxrpc_release,
 	.bind		= rxrpc_bind,
 	.bind		= rxrpc_bind,