coco3: tty: correct ioctl error return
authorBrett Gordon <beretta42@gmail.com>
Wed, 7 Oct 2015 18:37:05 +0000 (14:37 -0400)
committerBrett Gordon <beretta42@gmail.com>
Wed, 7 Oct 2015 18:37:05 +0000 (14:37 -0400)
Kernel/platform-coco3/devtty.c

index 6fa56a4..c30f335 100644 (file)
@@ -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;
 }