mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
audit: inline audit_free to simplify the look of generic code
make the conditional a static inline instead of doing it in generic code. Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
38cdce53da
commit
a4ff8dba7d
3 changed files with 8 additions and 4 deletions
|
@ -964,8 +964,7 @@ NORET_TYPE void do_exit(long code)
|
|||
acct_collect(code, group_dead);
|
||||
if (group_dead)
|
||||
tty_audit_exit();
|
||||
if (unlikely(tsk->audit_context))
|
||||
audit_free(tsk);
|
||||
audit_free(tsk);
|
||||
|
||||
tsk->exit_code = code;
|
||||
taskstats_exit(tsk, group_dead);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue