diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-08-21 17:22:11 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-08-21 17:40:10 -0400 |
commit | af6d572134b012ca92c4efc8a2f1cadbe5d01064 (patch) | |
tree | 057465a1a9cdb39664d6660e172f7c81f762d850 /net/sunrpc | |
parent | f23abfdb94fda3108441530cb4a813088d3f9176 (diff) | |
download | linux-3.10-af6d572134b012ca92c4efc8a2f1cadbe5d01064.tar.gz linux-3.10-af6d572134b012ca92c4efc8a2f1cadbe5d01064.tar.bz2 linux-3.10-af6d572134b012ca92c4efc8a2f1cadbe5d01064.zip |
svcrpc: don't bother checking bad svc_addr_len result
None of the callers should see an unsupported address family (only one
of them even bothers to check for that case), so just check for the
buggy case in svc_addr_len and don't bother elsewhere.
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svcsock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 06ae8a75534..406688baac5 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -601,8 +601,6 @@ static int svc_udp_recvfrom(struct svc_rqst *rqstp) return -EAGAIN; } len = svc_addr_len(svc_addr(rqstp)); - if (len == 0) - return -EAFNOSUPPORT; rqstp->rq_addrlen = len; if (skb->tstamp.tv64 == 0) { skb->tstamp = ktime_get_real(); |