From 07e321e579a55831d581a42dda549f4e98a37d5f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 11 May 2018 23:39:55 +0100 Subject: [PATCH] amstradnc: fix bug where you could issue gfx ioctls from any tty! --- Kernel/platform-amstradnc/devgfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1