Skip to content
Commit 7e4237fa authored by nixiaoming's avatar nixiaoming Committed by Paul Moore
Browse files

selinux: cleanup dentry and inodes on error in selinuxfs



If the resource requested by d_alloc_name is not added to the linked
list through d_add, then dput needs to be called to release the
subsequent abnormal branch to avoid resource leakage.

Add missing dput to selinuxfs.c

Signed-off-by: default avatarnixiaoming <nixiaoming@huawei.com>
[PM: tweak the subject line]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 631d2b49
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