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
[PATCH] RPC: Make rpc_create_client() destroy the transport on failure.
[safe/jmp/linux-2.6]
/
fs
/
nfs
/
mount_clnt.c
diff --git
a/fs/nfs/mount_clnt.c
b/fs/nfs/mount_clnt.c
index
9d3ddad
..
0e82617
100644
(file)
--- a/
fs/nfs/mount_clnt.c
+++ b/
fs/nfs/mount_clnt.c
@@
-80,9
+80,7
@@
mnt_create(char *hostname, struct sockaddr_in *srvaddr, int version,
clnt = rpc_create_client(xprt, hostname,
&mnt_program, version,
RPC_AUTH_UNIX);
- if (IS_ERR(clnt)) {
- xprt_destroy(xprt);
- } else {
+ if (!IS_ERR(clnt)) {
clnt->cl_softrtry = 1;
clnt->cl_chatty = 1;
clnt->cl_oneshot = 1;