Commit d5f458a9 authored by Alexey Gladkov's avatar Alexey Gladkov Committed by Trond Myklebust

Fix user namespace leak

Fixes: 61ca2c4a ("NFS: Only reference user namespace from nfs4idmap struct instead of cred")
Signed-off-by: default avatarAlexey Gladkov <legion@kernel.org>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent e591b298
......@@ -487,7 +487,7 @@ nfs_idmap_new(struct nfs_client *clp)
err_destroy_pipe:
rpc_destroy_pipe_data(idmap->idmap_pipe);
err:
get_user_ns(idmap->user_ns);
put_user_ns(idmap->user_ns);
kfree(idmap);
return error;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment