Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263997
b: refs/heads/master
c: 5b980b0
h: refs/heads/master
i:
  263995: 16b82a7
v: v3
  • Loading branch information
Pavel Shilovsky authored and Steve French committed Sep 20, 2011
1 parent eccc5d3 commit 188194a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9438fabb73eb48055b58b89fc51e0bc4db22fabd
refs/heads/master: 5b980b01212199833ee8023770fa4cbf1b85e9f4
10 changes: 6 additions & 4 deletions trunk/fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,12 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb)
struct inode *dir = dentry->d_inode;
struct dentry *child;

if (!dir) {
dput(dentry);
dentry = ERR_PTR(-ENOENT);
break;
}

/* skip separators */
while (*s == sep)
s++;
Expand All @@ -563,10 +569,6 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb)
mutex_unlock(&dir->i_mutex);
dput(dentry);
dentry = child;
if (!dentry->d_inode) {
dput(dentry);
dentry = ERR_PTR(-ENOENT);
}
} while (!IS_ERR(dentry));
_FreeXid(xid);
kfree(full_path);
Expand Down

0 comments on commit 188194a

Please sign in to comment.