]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix error reporting in nfs_xdev_mount
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 16 Jan 2013 20:05:44 +0000 (15:05 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 27 Jan 2013 20:51:15 +0000 (15:51 -0500)
commitf1baba8e74c47abfb0beffa3d365cb7997872cee
treeca4cd3da053a74fe15742d17b0d2d4f5903bd57b
parent4bcef794c53660c544eaf850f64ba85d4a61e2a9
NFS: Fix error reporting in nfs_xdev_mount

Currently, nfs_xdev_mount converts all errors from clone_server() to
ENOMEM, which can then leak to userspace (for instance to 'mount'). Fix that.
Also ensure that if nfs_fs_mount_common() returns an error, we
don't dprintk(0)...

The regression originated in commit 0f32b1c10b13eba4c960be3c9b29b6de5488dcc7
(NFS: Use nfs_fs_mount_common() for xdev mounts)

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org [>= 3.5]
fs/nfs/super.c