diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-10-20 08:28:44 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 19:26:39 +0200 |
commit | b7766da7f7395b74dec9e52005b7dac0d09391a4 (patch) | |
tree | a7008bf0809b5e4783a013b402b1383c16f050ac /net/sunrpc/xprtsock.c | |
parent | [PATCH] SUNRPC: fix race in in-kernel RPC portmapper client (diff) | |
download | linux-b7766da7f7395b74dec9e52005b7dac0d09391a4.tar.xz linux-b7766da7f7395b74dec9e52005b7dac0d09391a4.zip |
[PATCH] SUNRPC: fix a typo
Yes, this actually passed tests the way it was.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r-- | net/sunrpc/xprtsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 28100e019225..757fc91ef25d 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -1366,7 +1366,7 @@ int xs_setup_udp(struct rpc_xprt *xprt, struct rpc_timeout *to) if (xprt->slot == NULL) return -ENOMEM; - if (ntohs(addr->sin_port != 0)) + if (ntohs(addr->sin_port) != 0) xprt_set_bound(xprt); xprt->port = xs_get_random_port(); |