]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFSv4: Fix the string length returned by the idmapper
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 8 Mar 2013 17:56:37 +0000 (12:56 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 20 Mar 2013 20:45:16 +0000 (16:45 -0400)
commitcf4ab538f1516606d3ae730dce15d6f33d96b7e1
tree28c52dbb7cbdcf0f02aaca0c4c0b2e1c28250f1a
parent6dbe51c251a327e012439c4772097a13df43c5b8
NFSv4: Fix the string length returned by the idmapper

Functions like nfs_map_uid_to_name() and nfs_map_gid_to_group() are
expected to return a string without any terminating NUL character.
Regression introduced by commit 57e62324e469e092ecc6c94a7a86fe4bd6ac5172
(NFS: Store the legacy idmapper result in the keyring).

Reported-by: Dave Chiluk <dave.chiluk@canonical.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Bryan Schumaker <bjschuma@netapp.com>
Cc: stable@vger.kernel.org [>=3.4]
fs/nfs/idmap.c