Commit 847c71fb authored by Steve French's avatar Steve French Committed by Steve French

Oops on reopen files when dentry already freed

parent 981e550d
......@@ -280,13 +280,13 @@ static int cifs_reopen_file(struct inode *inode, struct file *file)
pCifsFile->netfid = netfid;
pCifsFile->invalidHandle = FALSE;
up(&pCifsFile->fh_sem);
pCifsInode = CIFS_I(file->f_dentry->d_inode);
pCifsInode = CIFS_I(inode);
if(pCifsInode) {
if (pTcon->ses->capabilities & CAP_UNIX)
rc = cifs_get_inode_info_unix(&file->f_dentry->d_inode,
rc = cifs_get_inode_info_unix(inode,
full_path, inode->i_sb);
else
rc = cifs_get_inode_info(&file->f_dentry->d_inode,
rc = cifs_get_inode_info(inode,
full_path, buf, inode->i_sb);
if(oplock == OPLOCK_EXCLUSIVE) {
......
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