From: Peter Hurley Date: Wed, 6 Mar 2013 13:38:20 +0000 (-0500) Subject: n_tty: Lock access to tty->pgrp for POSIX job control X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~136^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01a5e440c91dc6065cf3dbc38aa7276fc4ce2f26;p=pandora-kernel.git n_tty: Lock access to tty->pgrp for POSIX job control Concurrent access to tty->pgrp must be protected with tty->ctrl_lock. Also, as noted in the comments, reading current->signal->tty is safe because either, 1) current->signal->tty is assigned by current, or 2) current->signal->tty is set to NULL. NB: for reference, tty_check_change() implements a similar POSIX check for the ioctls corresponding to tcflush(), tcdrain(), tcsetattr(), tcsetpgrp(), tcflow() and tcsendbreak(). Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed