aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 4f55ab7ec1b1..75ab08eac66b 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1911,6 +1911,11 @@ static void xs_tcp_setup_socket(struct rpc_xprt *xprt,
1911 case -EALREADY: 1911 case -EALREADY:
1912 xprt_clear_connecting(xprt); 1912 xprt_clear_connecting(xprt);
1913 return; 1913 return;
1914 case -EINVAL:
1915 /* Happens, for instance, if the user specified a link
1916 * local IPv6 address without a scope-id.
1917 */
1918 goto out;
1914 } 1919 }
1915out_eagain: 1920out_eagain:
1916 status = -EAGAIN; 1921 status = -EAGAIN;
@@ -2099,7 +2104,7 @@ static void xs_tcp_print_stats(struct rpc_xprt *xprt, struct seq_file *seq)
2099 * we allocate pages instead doing a kmalloc like rpc_malloc is because we want 2104 * we allocate pages instead doing a kmalloc like rpc_malloc is because we want
2100 * to use the server side send routines. 2105 * to use the server side send routines.
2101 */ 2106 */
2102void *bc_malloc(struct rpc_task *task, size_t size) 2107static void *bc_malloc(struct rpc_task *task, size_t size)
2103{ 2108{
2104 struct page *page; 2109 struct page *page;
2105 struct rpc_buffer *buf; 2110 struct rpc_buffer *buf;
@@ -2119,7 +2124,7 @@ void *bc_malloc(struct rpc_task *task, size_t size)
2119/* 2124/*
2120 * Free the space allocated in the bc_alloc routine 2125 * Free the space allocated in the bc_alloc routine
2121 */ 2126 */
2122void bc_free(void *buffer) 2127static void bc_free(void *buffer)
2123{ 2128{
2124 struct rpc_buffer *buf; 2129 struct rpc_buffer *buf;
2125 2130