diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-02 17:46:09 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-03 18:35:03 -0500 |
commit | f2d0d85e58099d518cb50b1c95fc1fc62bbce1b8 (patch) | |
tree | b8b14f9f4d803b90c2d8a96faef082f1b6e257be /fs/nfs/super.c | |
parent | 2efef837fb84f78cee7439804cb3722bffc64e75 (diff) |
NFSv4: Fix Oops in nfs4_create_referral_server
The filehandle that is passed into nfs4_create_referral_server is
not initialised. The expectation is that nfs4_create_referral_server will
initialise it, and return it to the caller.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 28108c82b887..89da0a38c12c 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -1044,7 +1044,7 @@ static int nfs4_referral_get_sb(struct file_system_type *fs_type, int flags, | |||
1044 | nfs4_fill_super(s); | 1044 | nfs4_fill_super(s); |
1045 | } | 1045 | } |
1046 | 1046 | ||
1047 | mntroot = nfs4_get_root(s, data->fh); | 1047 | mntroot = nfs4_get_root(s, &mntfh); |
1048 | if (IS_ERR(mntroot)) { | 1048 | if (IS_ERR(mntroot)) { |
1049 | error = PTR_ERR(mntroot); | 1049 | error = PTR_ERR(mntroot); |
1050 | goto error_splat_super; | 1050 | goto error_splat_super; |