git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SUNRPC: NFS kernel APIs shouldn't return ENOENT for "transport not found"
[safe/jmp/linux-2.6]
/
fs
/
nfsd
/
nfsctl.c
diff --git
a/fs/nfsd/nfsctl.c
b/fs/nfsd/nfsctl.c
index
2604c3e
..
f43ecd6
100644
(file)
--- a/
fs/nfsd/nfsctl.c
+++ b/
fs/nfsd/nfsctl.c
@@
-1002,12
+1002,8
@@
static ssize_t __write_ports_addxprt(char *buf)
err = svc_create_xprt(nfsd_serv, transport,
PF_INET, port, SVC_SOCK_ANONYMOUS);
- if (err < 0) {
- /* Give a reasonable perror msg for bad transport string */
- if (err == -ENOENT)
- err = -EPROTONOSUPPORT;
+ if (err < 0)
return err;
- }
return 0;
}