diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c index cbcdfaf325054e215159f2d1c1797994eff050ac..24eb663f8ed528426572471a629ab033726919d8 100644 --- a/fs/nfs/nfs4client.c +++ b/fs/nfs/nfs4client.c @@ -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); }