diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-01-10 09:55:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-28 03:41:04 +0300 |
commit | fbaa122718a1235f4f83baa3abaad21cfefdbc9d (patch) | |
tree | 4ded90498dab94dce2f1c2c6679558ff217343fb /include/linux/rotary_encoder.h | |
parent | 5493090fc2341d9f28bdd9e81445fe0a130bafc2 (diff) | |
download | linux-fbaa122718a1235f4f83baa3abaad21cfefdbc9d.tar.xz |
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>
Diffstat (limited to 'include/linux/rotary_encoder.h')
0 files changed, 0 insertions, 0 deletions