Peter Hurley fbaa122718 tty: audit: Simplify first-use allocation
The first-use tty audit buffer allocation is a potential race
amongst multiple attempts at 'first-use'; only one 'winner' is
acceptable.

The successful buffer assignment occurs if tty_audit_buf == NULL
(which will also be the return from cmpxchg()); otherwise, another
racer 'won' and this buffer allocation is freed.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-01-27 16:41:04 -08:00
..
2015-11-04 21:35:12 -08:00
2015-03-31 12:04:13 +02:00
2015-05-10 19:26:37 +02:00
2016-01-27 14:28:20 -08:00
2015-10-17 21:14:06 -07:00
2015-12-12 23:05:28 -08:00
2016-01-27 15:13:28 -08:00
2015-12-13 19:59:48 -08:00