Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

securityfs: don't pin dentries twice, once is enough...

incidentally, securityfs_recursive_remove() is broken without that -
it leaks dentries, since simple_recursive_removal() does not expect
anything of that sort. It could be worked around by dput() in
remove_one() callback, but it's easier to just drop that double-get
stuff.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

-2
-2
security/inode.c
··· 159 159 inode->i_fop = fops; 160 160 } 161 161 d_instantiate(dentry, inode); 162 - dget(dentry); 163 162 inode_unlock(dir); 164 163 return dentry; 165 164 ··· 305 306 simple_rmdir(dir, dentry); 306 307 else 307 308 simple_unlink(dir, dentry); 308 - dput(dentry); 309 309 } 310 310 inode_unlock(dir); 311 311 simple_release_fs(&mount, &mount_count);