Skip to content

Commit aaa31cb

Browse files
committed
rxrpc: Don't specify protocol to when creating transport socket
Pass 0 as the protocol argument when creating the transport socket rather than IPPROTO_UDP. Signed-off-by: David Howells <[email protected]>
1 parent cd5892c commit aaa31cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/rxrpc/local_object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ static int rxrpc_open_socket(struct rxrpc_local *local)
103103
_enter("%p{%d}", local, local->srx.transport_type);
104104

105105
/* create a socket to represent the local endpoint */
106-
ret = sock_create_kern(&init_net, PF_INET, local->srx.transport_type,
107-
IPPROTO_UDP, &local->socket);
106+
ret = sock_create_kern(&init_net, local->srx.transport.family,
107+
local->srx.transport_type, 0, &local->socket);
108108
if (ret < 0) {
109109
_leave(" = %d [socket]", ret);
110110
return ret;

0 commit comments

Comments
 (0)