summaryrefslogtreecommitdiffstats
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2016-01-09 22:55:35 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-27 16:41:04 -0800
commit5493090fc2341d9f28bdd9e81445fe0a130bafc2 (patch)
treeea42cb5c3ae0c4eb5d218da59559b7390f922224 /include/linux/debugobjects.h
parent5c8b3185c41cd7f7c1e39c6e300daac8ef547e7e (diff)
downloadcachepc-linux-5493090fc2341d9f28bdd9e81445fe0a130bafc2.tar.gz
cachepc-linux-5493090fc2341d9f28bdd9e81445fe0a130bafc2.zip
tty: audit: Remove tty_audit_buf reference counting
When tty_audit_exit() is called from do_exit(), the process is single-threaded. Since the tty_audit_buf is only shared by threads of a process, no other thread can be concurrently accessing the tty_audit_buf during or after tty_audit_exit(). Thus, no other thread can be holding an extra tty_audit_buf reference which would prevent tty_audit_exit() from freeing the tty_audit_buf. As that is the only purpose of the ref counting, remove the reference counting and free the tty_audit_buf directly. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions