]> git.baikalelectronics.ru Git - kernel.git/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)
commit89c9b3713e11740b5fc90f2ad43a4bec5d45c4ad
tree802584176a0957ee4bb35adfe187a573d9d1cab3
parent775b5d3780653fd181d900258460facec9d54493
[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