]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:11:02 +0000 (16:11 -0500)
commit57dc95eebafd7e0eebbac5f177ac3e60008342ae
tree06d38e9d5fbcb3a59db30e4c21c6d3da84e66886
parentdd17b5298be2e182556ef25ce9108343089e77e5
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/nfs/nfs3proc.c