Wanlong Gao bbb63c514a drivers:tty:fix up ENOIOCTLCMD error handling
At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be
translated as ENOTTY to user mode.
For example:
	fd = open("/dev/tty", O_RDWR);
	ioctl(fd, -1, &argp);

then the errno should be ENOTTY but not EINVAL.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-05 12:41:57 -07:00
..
2012-08-13 16:53:14 -07:00
2012-07-26 13:37:02 -07:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:50:19 -07:00
2011-03-31 11:26:23 -03:00
2012-08-10 12:55:47 -07:00
2012-08-16 11:53:14 -07:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:53:13 -07:00
2012-08-13 16:53:14 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00
2012-08-13 16:50:19 -07:00