summaryrefslogtreecommitdiff
path: root/fs/afs/yfsclient.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-10-26 23:15:23 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-11-03 01:49:17 +0300
commit90bfdeef83f1d6c696039b6a917190dcbbad3220 (patch)
treec381e25ec3c31ba296df929fdfcc72eb6fc3b004 /fs/afs/yfsclient.c
parentb7cbaf59f62f8ab8f157698f9e31642bff525bd0 (diff)
downloadlinux-90bfdeef83f1d6c696039b6a917190dcbbad3220.tar.xz
tty: make FONTX ioctl use the tty pointer they were actually passed
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>
Diffstat (limited to 'fs/afs/yfsclient.c')
0 files changed, 0 insertions, 0 deletions