Commit 5bb2dc6d authored by Steve French's avatar Steve French Committed by Steve French

Fix oops in cifs mkdir when server fails to return inode info after successful mkdir

parent 32995340
Version 0.85
------------
Fix oops in mkdir when server fails to return inode info.
Version 0.84
------------
Finish support for Linux 2.5 open/create changes, which removes the
......
......@@ -404,7 +404,8 @@ cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
direntry->d_op = &cifs_dentry_ops;
d_instantiate(direntry, newinode);
direntry->d_inode->i_nlink = 2;
if(direntry->d_inode)
direntry->d_inode->i_nlink = 2;
if (cifs_sb->tcon->ses->capabilities & CAP_UNIX)
CIFSSMBUnixSetPerms(xid, pTcon, full_path, mode,
(__u64)-1,
......
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