projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86fb449
)
SUNRPC: Fix a missing break in rpc_anyaddr()
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Wed, 30 Dec 2015 23:14:06 +0000
(18:14 -0500)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Wed, 30 Dec 2015 23:14:06 +0000
(18:14 -0500)
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>
net/sunrpc/clnt.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/clnt.c
b/net/sunrpc/clnt.c
index 23608eb0ded2c94e363ed06e35384b08417e04ed..b7f21044f4d8cb4ab2012566fa80c6b412fa3d2b 100644
(file)
--- 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__);