Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287785
b: refs/heads/master
c: abe9a6d
h: refs/heads/master
i:
  287783: 4eb976c
v: v3
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Feb 17, 2012
1 parent 2d29cac commit b9c8b6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f86f36a6ae625eda87a13e1ea102a908e08f491b
refs/heads/master: abe9a6d57b4544ac208401f9c0a4262814db2be4
15 changes: 9 additions & 6 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4883,8 +4883,10 @@ int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred)
clp->cl_rpcclient->cl_auth->au_flavor);

res.server_scope = kzalloc(sizeof(struct server_scope), GFP_KERNEL);
if (unlikely(!res.server_scope))
return -ENOMEM;
if (unlikely(!res.server_scope)) {
status = -ENOMEM;
goto out;
}

status = rpc_call_sync(clp->cl_rpcclient, &msg, RPC_TASK_TIMEOUT);
if (!status)
Expand All @@ -4901,12 +4903,13 @@ int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred)
clp->server_scope = NULL;
}

if (!clp->server_scope)
if (!clp->server_scope) {
clp->server_scope = res.server_scope;
else
kfree(res.server_scope);
goto out;
}
}

kfree(res.server_scope);
out:
dprintk("<-- %s status= %d\n", __func__, status);
return status;
}
Expand Down

0 comments on commit b9c8b6e

Please sign in to comment.