Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdc5524e authored by NeilBrown's avatar NeilBrown Committed by Linus Torvalds
Browse files

[PATCH] nfsd4: lookup_one_len takes i_sem



Oops, this lookup_one_len needs the i_sem.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a6ccbbb8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -289,7 +289,9 @@ nfsd4_unlink_clid_dir(char *name, int namlen)

	dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name);

	down(&rec_dir.dentry->d_inode->i_sem);
	dentry = lookup_one_len(name, rec_dir.dentry, namlen);
	up(&rec_dir.dentry->d_inode->i_sem);
	if (IS_ERR(dentry)) {
		status = PTR_ERR(dentry);
		return status;