diff options
author | Denis V. Lunev <den@openvz.org> | 2008-07-31 09:38:55 +0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-10-07 18:14:34 -0400 |
commit | fd08d7e9d196ca49afcce0181f1f0ca68f241aa2 (patch) | |
tree | 445a2d883332274b3ec01c6cf30f840a6d1d4d9b /fs/nfs | |
parent | bb8a3b53c20f2c07164a23ff6c320794fee8b95f (diff) | |
download | kernel_samsung_smdk4412-fd08d7e9d196ca49afcce0181f1f0ca68f241aa2.tar.gz kernel_samsung_smdk4412-fd08d7e9d196ca49afcce0181f1f0ca68f241aa2.tar.bz2 kernel_samsung_smdk4412-fd08d7e9d196ca49afcce0181f1f0ca68f241aa2.zip |
nfs: ERR_PTR is expected on failure from nfs_do_clone_mount
Replace NULL with ERR_PTR(-EINVAL).
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index 66df08dd1ca..d398775a3af 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c @@ -189,7 +189,7 @@ static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server, struct nfs_clone_mount *mountdata) { #ifdef CONFIG_NFS_V4 - struct vfsmount *mnt = NULL; + struct vfsmount *mnt = ERR_PTR(-EINVAL); switch (server->nfs_client->rpc_ops->version) { case 2: case 3: |