]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:25:51 +0000 (09:25 -0700)
commitc648a421337d1dea3bb05ff035f03b88c4320299
treec1299d72c5147fd54488a9cea8bb89b083376099
parent880a4e09e465c4fbb3f2f773803240f58d5ef078
NFSv4: Fix the string length returned by the idmapper

commit cf4ab538f1516606d3ae730dce15d6f33d96b7e1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/idmap.c