Commit fd08d7e9 authored by Denis V. Lunev's avatar Denis V. Lunev Committed by Trond Myklebust

nfs: ERR_PTR is expected on failure from nfs_do_clone_mount

Replace NULL with ERR_PTR(-EINVAL).
Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent bb8a3b53
...@@ -189,7 +189,7 @@ static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server, ...@@ -189,7 +189,7 @@ static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server,
struct nfs_clone_mount *mountdata) struct nfs_clone_mount *mountdata)
{ {
#ifdef CONFIG_NFS_V4 #ifdef CONFIG_NFS_V4
struct vfsmount *mnt = NULL; struct vfsmount *mnt = ERR_PTR(-EINVAL);
switch (server->nfs_client->rpc_ops->version) { switch (server->nfs_client->rpc_ops->version) {
case 2: case 2:
case 3: case 3:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment