diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2018-12-24 12:46:14 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-12-28 03:01:41 +0100 |
commit | 9ac312888e8869481613a2c65bb8bf5ab6d15594 (patch) | |
tree | 26f272fd32ad6bd5c5419b0092168d69ea8eaceb /net/sunrpc/svc_xprt.c | |
parent | sunrpc: make visible processing error in bc_svc_process() (diff) | |
download | linux-9ac312888e8869481613a2c65bb8bf5ab6d15594.tar.xz linux-9ac312888e8869481613a2c65bb8bf5ab6d15594.zip |
sunrpc: fix debug message in svc_create_xprt()
_svc_create_xprt() returns positive port number
so its non-zero return value is not an error
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index bd42da287c26..4eb8fbf2508d 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -296,9 +296,9 @@ int svc_create_xprt(struct svc_serv *serv, const char *xprt_name, request_module("svc%s", xprt_name); err = _svc_create_xprt(serv, xprt_name, net, family, port, flags); } - if (err) + if (err < 0) dprintk("svc: transport %s not found, err %d\n", - xprt_name, err); + xprt_name, -err); return err; } EXPORT_SYMBOL_GPL(svc_create_xprt); |