From: Peter Hurley Date: Sat, 15 Jun 2013 13:14:21 +0000 (-0400) Subject: n_tty: Don't wrap input buffer indices at buffer size X-Git-Tag: v3.12-rc1~182^2~213 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc5a5e3f45d047844830233fb95b19a95c864a0f;p=pandora-kernel.git n_tty: Don't wrap input buffer indices at buffer size Wrap read_buf indices (read_head, read_tail, canon_head) at max representable value, instead of at the N_TTY_BUF_SIZE. This step is necessary to allow lockless reads of these shared variables (by updating the variables atomically). Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed