Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217045
b: refs/heads/master
c: f7732d6
h: refs/heads/master
i:
  217043: 93f4369
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 21, 2010
1 parent 6d5452a commit b48d09f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3d4152a5d59af9e13a73efa9e9c24383fbe307f
refs/heads/master: f7732d6573c4f29fc1ca5d384bbf82ddfa115030
9 changes: 2 additions & 7 deletions trunk/fs/nfs/unlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ nfs_async_rename(struct inode *old_dir, struct inode *new_dir,
.rpc_client = NFS_CLIENT(old_dir),
.flags = RPC_TASK_ASYNC,
};
struct rpc_task *task;

data = kmalloc(sizeof(*data), GFP_KERNEL);
if (data == NULL)
Expand All @@ -435,7 +434,7 @@ nfs_async_rename(struct inode *old_dir, struct inode *new_dir,

data->cred = rpc_lookup_cred();
if (IS_ERR(data->cred)) {
task = (struct rpc_task *)data->cred;
struct rpc_task *task = ERR_CAST(data->cred);
kfree(data);
return task;
}
Expand Down Expand Up @@ -468,11 +467,7 @@ nfs_async_rename(struct inode *old_dir, struct inode *new_dir,

NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dir);

task = rpc_run_task(&task_setup_data);
if (IS_ERR(task))
nfs_async_rename_release(data);

return task;
return rpc_run_task(&task_setup_data);
}

/**
Expand Down

0 comments on commit b48d09f

Please sign in to comment.