From: Peter Hurley Date: Thu, 7 Nov 2013 19:01:57 +0000 (-0500) Subject: n_tty: Protect minimum_to_wake reset for concurrent readers X-Git-Tag: v3.13-rc2~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aebf045382edb32bd763d8edea02a559e7dc41e9;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed