]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix an Oops in encode_lookup()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2007 16:27:41 +0000 (12:27 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 28 Sep 2007 22:36:42 +0000 (15:36 -0700)
commit1e4dd71cc255173c3c73a7af3b26853a1aa512de
treed24e5b23462a51a4e932b14feb5ae943b0dbba1e
parent5707177930e8f7c025fc5662b90ea3ac0b555d82
NFS: Fix an Oops in encode_lookup()

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>
fs/nfs/client.c
fs/nfs/dir.c
fs/nfs/getroot.c