diff options
Diffstat (limited to 'security/tomoyo/domain.c')
-rw-r--r-- | security/tomoyo/domain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c index d60b8a61b0c8..6f74b30d6bb1 100644 --- a/security/tomoyo/domain.c +++ b/security/tomoyo/domain.c | |||
@@ -817,6 +817,8 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm) | |||
817 | out: | 817 | out: |
818 | if (!domain) | 818 | if (!domain) |
819 | domain = old_domain; | 819 | domain = old_domain; |
820 | /* Update reference count on "struct tomoyo_domain_info". */ | ||
821 | atomic_inc(&domain->users); | ||
820 | bprm->cred->security = domain; | 822 | bprm->cred->security = domain; |
821 | kfree(real_program_name); | 823 | kfree(real_program_name); |
822 | kfree(symlink_program_name); | 824 | kfree(symlink_program_name); |