From: Wanlong Gao Date: Mon, 27 Aug 2012 07:23:12 +0000 (+0800) Subject: drivers:tty:fix up ENOIOCTLCMD error handling X-Git-Tag: omap-cleanup-sparseirq-for-v3.7~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbb63c514a3464342967237a51a21ea8f61ab951;p=pandora-kernel.git 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 Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed