summaryrefslogtreecommitdiff
path: root/drivers/tty/moxa.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-10-26 13:15:23 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-10 10:22:17 +0100
commite847c4e2ccc80295338cc96136aec2877be82359 (patch)
treef576d538e562fd3af5c847bd815fcfefbe44aa82 /drivers/tty/moxa.h
parente861fa7413af7c3db3d575af0631177e171f12fd (diff)
tty: make FONTX ioctl use the tty pointer they were actually passed
commit 90bfdeef83f1d6c696039b6a917190dcbbad3220 upstream. Some of the font tty ioctl's always used the current foreground VC for their operations. Don't do that then. This fixes a data race on fg_console. Side note: both Michael Ellerman and Jiri Slaby point out that all these ioctls are deprecated, and should probably have been removed long ago, and everything seems to be using the KDFONTOP ioctl instead. In fact, Michael points out that it looks like busybox's loadfont program seems to have switched over to using KDFONTOP exactly _because_ of this bug (ahem.. 12 years ago ;-). Reported-by: Minh Yuan <yuanmingbuaa@gmail.com> Acked-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Jiri Slaby <jirislaby@kernel.org> Cc: Greg KH <greg@kroah.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/moxa.h')
0 files changed, 0 insertions, 0 deletions