tty: audit: Poison tty_audit_buf while process exits
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 06:55:39 +0000 (22:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 00:41:04 +0000 (16:41 -0800)
commit55b6314a17e8ad53233e9d0ebf6328734720e93b
treea6b42357e26de7e9cf655f0a907be4c2d382bdff
parent82b5c93a00169614a75d5fa3b5974f832a7857c7
tty: audit: Poison tty_audit_buf while process exits

Warn if tty_audit_buf use is attempted after tty_audit_exit() has
already freed it.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_audit.c