From 96625ab93735bc045359fcf27215f76a500feff2 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Wed, 7 Oct 2015 14:37:05 -0400 Subject: [PATCH] coco3: tty: correct ioctl error return --- Kernel/platform-coco3/devtty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index 6fa56a44..c30f3357 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -514,7 +514,7 @@ int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr) if( minor == curminor ) apply_gime( minor ); return 0; } - error: udata.u_error = ENOTTY; + error: udata.u_error = EINVAL; return -1; } -- 2.34.1