]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
NFS: Fix a bad cast in nfs3_read_done
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 27 Oct 2005 23:10:09 +0000 (19:10 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 27 Oct 2005 23:10:09 +0000 (19:10 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs3proc.c

index df80477c5af4250c4e8732f89e6f8532b08ef38c..e4a1cd48195ef84a5e79132b7a4d9010dea02597 100644 (file)
@@ -735,7 +735,7 @@ extern u32 *nfs3_decode_dirent(u32 *, struct nfs_entry *, int);
 static void
 nfs3_read_done(struct rpc_task *task)
 {
-       struct nfs_write_data *data = (struct nfs_write_data *) task->tk_calldata;
+       struct nfs_read_data *data = (struct nfs_read_data *) task->tk_calldata;
 
        if (nfs3_async_handle_jukebox(task))
                return;