NFS: Fix an Oops in encode_lookup()
commit84dfa41e5b53b3e5704c841d5ec95edd6a3518a6
authorGreg KH <gregkh@suse.de>
Fri, 22 Feb 2008 21:31:32 +0000 (22 13:31 -0800)
committerOliver Pinter <oliver.pntr@gmail.com>
Sat, 23 Feb 2008 20:05:19 +0000 (23 21:05 +0100)
tree44202c7ccf931e92ae2e0cb179702fdd179fbf9e
parentecfa052f58d6c10bc87865594c94cf3820897e9f
NFS: Fix an Oops in encode_lookup()

2.6.22-stable review patch.  If anyone has any objections, please let us
know.

------------------

From: Trond Myklebust <Trond.Myklebust@netapp.com>

mainline: 54af3bb543c071769141387a42deaaab5074da55

It doesn't look as if the NFS file name limit is being initialised correctly
in the struct nfs_server. Make sure that we limit whatever is being set in
nfs_probe_fsinfo() and nfs_init_server().

Also ensure that readdirplus and nfs4_path_walk respect our file name
limits.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Neil Brown <neilb@suse.de>
CC: Oliver Pinter <oliver.pntr@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
fs/nfs/client.c
fs/nfs/dir.c
fs/nfs/getroot.c