From a52b3a590490d26f8081279f6679c003a6240e52 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 5 Aug 2011 09:02:40 -0400 Subject: [PATCH] --- yaml --- r: 262633 b: refs/heads/master c: 80975d21aae2136ccae1ce914a1602dc1d8b0795 h: refs/heads/master i: 262631: 75991b8626c8289fb2ade5f4510471e70874fc1b v: v3 --- [refs] | 2 +- trunk/fs/cifs/cifsfs.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e81cf4190671..7c71f152f664 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f9e8c45002cacad536b338dfa9e910e341a49c31 +refs/heads/master: 80975d21aae2136ccae1ce914a1602dc1d8b0795 diff --git a/trunk/fs/cifs/cifsfs.c b/trunk/fs/cifs/cifsfs.c index 212e5629cc1d..f93eb948d071 100644 --- a/trunk/fs/cifs/cifsfs.c +++ b/trunk/fs/cifs/cifsfs.c @@ -563,6 +563,10 @@ 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);