patch-2.4.0-test3 linux/arch/mips/kernel/irixioctl.c
Next file: linux/arch/mips/kernel/irixsig.c
Previous file: linux/arch/mips/kernel/irixelf.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Sun Jul 9 22:18:15 2000
- Orig file:
v2.4.0-test2/linux/arch/mips/kernel/irixioctl.c
- Orig date:
Tue May 23 15:31:33 2000
diff -u --recursive --new-file v2.4.0-test2/linux/arch/mips/kernel/irixioctl.c linux/arch/mips/kernel/irixioctl.c
@@ -1,4 +1,4 @@
-/* $Id: irixioctl.c,v 1.6 1999/02/06 05:12:56 adevries Exp $
+/*
* irixioctl.c: A fucking mess...
*
* Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
@@ -48,7 +48,7 @@
static struct tty_struct *get_real_tty(struct tty_struct *tp)
{
- if(tp->driver.type == TTY_DRIVER_TYPE_PTY &&
+ if (tp->driver.type == TTY_DRIVER_TYPE_PTY &&
tp->driver.subtype == PTY_TYPE_MASTER)
return tp->link;
else
@@ -61,7 +61,6 @@
mm_segment_t old_fs;
int error = 0;
- lock_kernel();
#ifdef DEBUG_IOCTLS
printk("[%s:%d] irix_ioctl(%d, ", current->comm, current->pid, fd);
#endif
@@ -87,7 +86,7 @@
old_fs = get_fs(); set_fs(get_ds());
error = sys_ioctl(fd, TCGETS, (unsigned long) &kt);
set_fs(old_fs);
- if(error)
+ if (error)
break;
__put_user(kt.c_iflag, &it->c_iflag);
__put_user(kt.c_oflag, &it->c_oflag);
@@ -106,7 +105,7 @@
#ifdef DEBUG_IOCTLS
printk("TCSETS, %08lx) ", arg);
#endif
- if(!access_ok(VERIFY_READ, it, sizeof(*it))) {
+ if (!access_ok(VERIFY_READ, it, sizeof(*it))) {
error = -EFAULT;
break;
}
@@ -259,6 +258,5 @@
#ifdef DEBUG_IOCTLS
printk("error=%d\n", error);
#endif
- unlock_kernel();
return error;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)