]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 16:59:25 +0000 (09:59 -0700)
commit9e4fe63cc868d001894f957c7e1164824b2e4ca3
tree75fcd911668362f33c8ff9eed12143089392647e
parentdf7ee7fd51727af73a9f611a4604a1bc4133b0fb
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