dect
/
linux-2.6
Archived
13
0
Fork 0

NFSv4: Ensure that nfs4_alloc_client cleans up on error.

Any pointer that was allocated through nfs_alloc_client() needs to be
freed via a call to nfs_free_client().

Reported-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust 2012-08-20 12:12:29 -04:00
parent 12dfd08055
commit 7653f6ff4e
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init)
return clp;
error:
kfree(clp);
nfs_free_client(clp);
return ERR_PTR(err);
}