From: Alan Cox Date: Fri, 11 May 2018 22:39:55 +0000 (+0100) Subject: amstradnc: fix bug where you could issue gfx ioctls from any tty! X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=07e321e579a55831d581a42dda549f4e98a37d5f;p=FUZIX.git amstradnc: fix bug where you could issue gfx ioctls from any tty! --- diff --git a/Kernel/platform-amstradnc/devgfx.c b/Kernel/platform-amstradnc/devgfx.c index 8514d364..eb928807 100644 --- a/Kernel/platform-amstradnc/devgfx.c +++ b/Kernel/platform-amstradnc/devgfx.c @@ -38,7 +38,7 @@ int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr) { uint8_t *tmp; uint16_t l; - if (arg >> 8 != 0x03) + if (minor != 1 || (arg >> 8 != 0x03)) return vt_ioctl(minor, arg, ptr); switch(arg) {