diff options
author | David Howells <dhowells@redhat.com> | 2016-09-13 08:49:05 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-13 23:09:13 +0100 |
commit | aaa31cbc66733386406464ec6c5c0889d9968a95 (patch) | |
tree | 7f4e40ab56b0ba7a758e069fd1f02ffacd4dcea0 /net/rxrpc/local_object.c | |
parent | cd5892c756f51ed6ff18ff49c837d219bfd9bb5d (diff) | |
download | blackbird-obmc-linux-aaa31cbc66733386406464ec6c5c0889d9968a95.tar.gz blackbird-obmc-linux-aaa31cbc66733386406464ec6c5c0889d9968a95.zip |
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 <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/local_object.c')
-rw-r--r-- | net/rxrpc/local_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/local_object.c b/net/rxrpc/local_object.c index 782b9adf67cb..8720be2a6250 100644 --- a/net/rxrpc/local_object.c +++ b/net/rxrpc/local_object.c @@ -103,8 +103,8 @@ static int rxrpc_open_socket(struct rxrpc_local *local) _enter("%p{%d}", local, local->srx.transport_type); /* create a socket to represent the local endpoint */ - ret = sock_create_kern(&init_net, PF_INET, local->srx.transport_type, - IPPROTO_UDP, &local->socket); + ret = sock_create_kern(&init_net, local->srx.transport.family, + local->srx.transport_type, 0, &local->socket); if (ret < 0) { _leave(" = %d [socket]", ret); return ret; |