diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-31 00:14:06 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-31 00:14:06 +0100 |
commit | 0b161e6330e27c191a0ff0d44082ff7832a8c8a1 (patch) | |
tree | b863a5e685b47fed03154ec34a0e655550d3362d /net/sunrpc/clnt.c | |
parent | pNFS/flexfiles: Fix an Oopsable typo in ff_mirror_match_fh() (diff) | |
download | linux-0b161e6330e27c191a0ff0d44082ff7832a8c8a1.tar.xz linux-0b161e6330e27c191a0ff0d44082ff7832a8c8a1.zip |
SUNRPC: Fix a missing break in rpc_anyaddr()
The missing break means that we always return EAFNOSUPPORT when
faced with a request for an IPv6 loopback address.
Reported-by: coverity (CID 401987)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 23608eb0ded2..b7f21044f4d8 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -1217,6 +1217,7 @@ static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) return -EINVAL; memcpy(buf, &rpc_in6addr_loopback, sizeof(rpc_in6addr_loopback)); + break; default: dprintk("RPC: %s: address family not supported\n", __func__); |