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