audit: Do not send uninitialized data for AUDIT_TTY_GET
authorThomas Gleixner <tglx@linutronix.de>
Wed, 9 Dec 2009 14:19:35 +0000 (14:19 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 30 Oct 2010 12:45:42 +0000 (08:45 -0400)
commit207032051a5ed38df332729ba42e98e9a1e60434
tree632311aa731ce8cda33888b54816837f2d1529bd
parent3c80fe4ac9cfb13b1bfa4edf1544e8b656716694
audit: Do not send uninitialized data for AUDIT_TTY_GET

audit_receive_msg() sends uninitialized data for AUDIT_TTY_GET when
the task was not found.

Send reply only when task was found.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit.c