Commit c85c39e7 authored by Steve French's avatar Steve French Committed by Steve French

Fix invalid dentry when race in mkdir between two clients

parent 84205632
......@@ -2,7 +2,8 @@ Verison 0.95
------------
Fix unsafe global variable usage and password hash failure on gcc 3.3.1
Fix problem reconnecting secondary mounts to same server after session
failure.
failure. Fix invalid dentry - race in mkdir when directory gets created
by another client between the lookup and mkdir.
Version 0.94
------------
......
......@@ -426,6 +426,7 @@ cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
rc = CIFSSMBMkDir(xid, pTcon, full_path, cifs_sb->local_nls);
if (rc) {
cFYI(1, ("cifs_mkdir returned 0x%x ", rc));
d_drop(direntry);
} else {
inode->i_nlink++;
if (pTcon->ses->capabilities & CAP_UNIX)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment