]> err.no Git - linux-2.6/commit
[PATCH] remove horrors with irix tty ioctls handling
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Apr 2008 04:49:25 +0000 (00:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 1 May 2008 17:07:21 +0000 (13:07 -0400)
commitbf7da7bcfb38409b4cdea34b0905bdf344f1b36d
tree802584176a0957ee4bb35adfe187a573d9d1cab3
parent74d92abc6143b124db03f0d341f02bde72fba6f5
[PATCH] remove horrors with irix tty ioctls handling

Existing code in there (get_tty(), etc.) is both severely
racy *and* pointless: ioctls in question have Linux equivalents
and there's no need to play silly buggers in irix_ioctl() -
just need to replace arguments and, in case of TIOCGSID,
deal with API differences - Linux one expects pid_t __user *
while Irix one does unsigned long __user *.  BFD...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/kernel/irixioctl.c