Skip to content
Snippets Groups Projects
Commit 22150c4f authored by Latchesar Ionkov's avatar Latchesar Ionkov Committed by Eric Van Hensbergen
Browse files

9p: v9fs_vfs_rename incorrect clunk order


In v9fs_vfs_rename function labels don't match the fids that are clunked.
The correct clunk order is clunking newdirfid first and then olddirfid next.

Signed-off-by: default avatarLatchesar Ionkov <lucho@ionkov.net>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 0a976297
No related branches found
No related tags found
No related merge requests found
......@@ -687,10 +687,10 @@ v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
retval = p9_client_wstat(oldfid, &wstat);
clunk_newdir:
p9_client_clunk(olddirfid);
p9_client_clunk(newdirfid);
clunk_olddir:
p9_client_clunk(newdirfid);
p9_client_clunk(olddirfid);
done:
return retval;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment