]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFSv3: Ensure that do_proc_get_root() reports errors correctly
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Aug 2012 16:42:15 +0000 (12:42 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 10:38:09 +0000 (03:38 -0700)
commit39b640181820a3fff57e16eebbcf8b1592847301
tree157765f5a8e911f00795dc173a53b808052aa011
parent5778cdb5a3b3bab9152ae9d18c44660bad05fee7
NFSv3: Ensure that do_proc_get_root() reports errors correctly

commit 086600430493e04b802bee6e5b3ce0458e4eb77f upstream.

If the rpc call to NFS3PROC_FSINFO fails, then we need to report that
error so that the mount fails. Otherwise we can end up with a
superblock with completely unusable values for block sizes, maxfilesize,
etc.

Reported-by: Yuanming Chen <hikvision_linux@163.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs3proc.c