David Emett
cf90c06f81
tty: fix read of tty->pgrp outside of ctrl_lock
...
The intention was clearly to use the tty_pgrp local variable rather than
re-read tty->pgrp outside of ctrl_lock, so do that.
This bug was introduced by commit 2812d9e9fd
("tty: Combine
SIGTTOU/SIGTTIN handling").
Signed-off-by: David Emett <dave@sp4m.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-03-28 01:28:23 +09:00
Valdis Klētnieks
3adf2aa8af
drivers/tty/tty_jobctrl.c - fix non-kerneldoc comment
...
Building with W=1 reports (among other things):
CC drivers/tty/tty_jobctrl.o
drivers/tty/tty_jobctrl.c:317: warning: Cannot understand *
on line 317 - I thought it was a doc line
Fix up the non-kerneldoc comment. (other warnings to be cleaned up in separate patch)
Signed-off-by Valdis Kletnieks <valdis.kletnieks@vt.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-03-28 01:28:16 +09:00
Greg Kroah-Hartman
e3b3d0f549
tty: add SPDX identifiers to all remaining files in drivers/tty/
...
It's good to have SPDX identifiers in all files to make it easier to
audit the kernel tree for correct licenses.
Update the drivers/tty files files with the correct SPDX license
identifier based on the license text in the file itself. The SPDX
identifier is a legally binding shorthand, which can be used instead of
the full boiler plate text.
This work is based on a script and data from Thomas Gleixner, Philippe
Ombredanne, and Kate Stewart.
Cc: Jiri Slaby <jslaby@suse.com >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Michael Ellerman <mpe@ellerman.id.au >
Cc: Chris Metcalf <cmetcalf@mellanox.com >
Cc: Jiri Kosina <jikos@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: James Hogan <jhogan@kernel.org >
Cc: Rob Herring <robh@kernel.org >
Cc: Eric Anholt <eric@anholt.net >
Cc: Stefan Wahren <stefan.wahren@i2se.com >
Cc: Florian Fainelli <f.fainelli@gmail.com >
Cc: Ray Jui <rjui@broadcom.com >
Cc: Scott Branden <sbranden@broadcom.com >
Cc: bcm-kernel-feedback-list@broadcom.com
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org >
Cc: Helge Deller <deller@gmx.de >
Cc: Joachim Eastwood <manabian@gmail.com >
Cc: Matthias Brugger <matthias.bgg@gmail.com >
Cc: Masahiro Yamada <yamada.masahiro@socionext.com >
Cc: Tobias Klauser <tklauser@distanz.ch >
Cc: Russell King <linux@armlinux.org.uk >
Cc: Vineet Gupta <vgupta@synopsys.com >
Cc: Richard Genoud <richard.genoud@gmail.com >
Cc: Alexander Shiyan <shc_work@mail.ru >
Cc: Baruch Siach <baruch@tkos.co.il >
Cc: "Maciej W. Rozycki" <macro@linux-mips.org >
Cc: "Uwe Kleine-König" <kernel@pengutronix.de >
Cc: Pat Gefre <pfg@sgi.com >
Cc: "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com >
Cc: Jason Wessel <jason.wessel@windriver.com >
Cc: Vladimir Zapolskiy <vz@mleia.com >
Cc: Sylvain Lemieux <slemieux.tyco@gmail.com >
Cc: Carlo Caione <carlo@caione.org >
Cc: Kevin Hilman <khilman@baylibre.com >
Cc: Liviu Dudau <liviu.dudau@arm.com >
Cc: Sudeep Holla <sudeep.holla@arm.com >
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com >
Cc: Andy Gross <andy.gross@linaro.org >
Cc: David Brown <david.brown@linaro.org >
Cc: "Andreas Färber" <afaerber@suse.de >
Cc: Kevin Cernekee <cernekee@gmail.com >
Cc: Laxman Dewangan <ldewangan@nvidia.com >
Cc: Thierry Reding <thierry.reding@gmail.com >
Cc: Jonathan Hunter <jonathanh@nvidia.com >
Cc: Barry Song <baohua@kernel.org >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Peter Korsgaard <jacmet@sunsite.dk >
Cc: Timur Tabi <timur@tabi.org >
Cc: Tony Prisk <linux@prisktech.co.nz >
Cc: Michal Simek <michal.simek@xilinx.com >
Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Kate Stewart <kstewart@linuxfoundation.org >
Cc: Philippe Ombredanne <pombredanne@nexb.com >
Cc: Jiri Slaby <jslaby@suse.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-11-08 13:08:12 +01:00
Nicolas Pitre
a1235b3eb1
tty: split job control support into a file of its own
...
This makes it easier for job control to become optional and/or usable
independently from tty_io.c, as well as providing a nice purpose
separation. No logical changes from this patch.
Signed-off-by: Nicolas Pitre <nico@linaro.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-04-18 18:01:52 +02:00