diff options
author | nixiaoming <nixiaoming@huawei.com> | 2018-08-05 12:10:36 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-08-08 00:26:25 +0300 |
commit | 7e4237faa7213c1cc1d0aa65a44c67ba4729ce9f (patch) | |
tree | 73df8262776cde450d4415380490785eb03e8b0f /drivers/regulator/da903x.c | |
parent | 631d2b490569118c5e4d4e35983efe36d9798cb5 (diff) | |
download | linux-7e4237faa7213c1cc1d0aa65a44c67ba4729ce9f.tar.xz |
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: nixiaoming <nixiaoming@huawei.com>
[PM: tweak the subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'drivers/regulator/da903x.c')
0 files changed, 0 insertions, 0 deletions