commit | aebf045382edb32bd763d8edea02a559e7dc41e9 | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Thu Nov 07 14:01:57 2013 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 25 09:17:49 2013 -0800 |
tree | eeba9a7cacf8a5a14500af01eaf626839655a480 | |
parent | d4855e1fc03c2bb32dd64badf51cec5a2a26ab2a [diff] |
n_tty: Protect minimum_to_wake reset for concurrent readers With multiple, concurrent readers (each waiting to acquire the atomic_read_lock mutex), a departing reader may mistakenly reset minimum_to_wake after a new reader has already set a new value. Protect the minimum_to_wake reset with the atomic_read_lock critical section. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>