X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fnamei.c;h=a780ea515c47988623fc4954b734562182ed24c5;hb=8e3fabfde445a872c8aec2296846badf24d7c8b4;hp=208c6aa4a989dade864a0ca6fcd3bd4b21ba8252;hpb=1c659a4475ec2b2f4495e4773c417a9100cbd9de;p=~andy%2Flinux diff --git a/fs/namei.c b/fs/namei.c index 208c6aa4a98..a780ea515c4 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1095,8 +1095,10 @@ static struct dentry *d_inode_lookup(struct dentry *parent, struct dentry *dentr struct dentry *old; /* Don't create child dentry for a dead directory. */ - if (unlikely(IS_DEADDIR(inode))) + if (unlikely(IS_DEADDIR(inode))) { + dput(dentry); return ERR_PTR(-ENOENT); + } old = inode->i_op->lookup(inode, dentry, nd); if (unlikely(old)) {