Browse Source

NFS: Fix a bad cast in nfs3_read_done

 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 19 years ago
parent
commit
34123da66e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/nfs/nfs3proc.c

+ 1 - 1
fs/nfs/nfs3proc.c

@@ -735,7 +735,7 @@ extern u32 *nfs3_decode_dirent(u32 *, struct nfs_entry *, int);
 static void
 static void
 nfs3_read_done(struct rpc_task *task)
 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))
 	if (nfs3_async_handle_jukebox(task))
 		return;
 		return;