patch-2.1.27 linux/arch/i386/kernel/sys_i386.c
Next file: linux/arch/i386/kernel/time.c
Previous file: linux/arch/i386/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Tue Feb 25 13:36:08 1997
- Orig file:
v2.1.26/linux/arch/i386/kernel/sys_i386.c
- Orig date:
Fri Feb 7 05:54:53 1997
diff -u --recursive --new-file v2.1.26/linux/arch/i386/kernel/sys_i386.c linux/arch/i386/kernel/sys_i386.c
@@ -88,14 +88,11 @@
asmlinkage int old_select(struct sel_arg_struct *arg)
{
struct sel_arg_struct a;
- int ret;
if (copy_from_user(&a, arg, sizeof(a)))
return -EFAULT;
- lock_kernel();
- ret = sys_select(a.n, a.inp, a.outp, a.exp, a.tvp);
- unlock_kernel();
- return ret;
+ /* sys_select() does the appropriate kernel locking */
+ return sys_select(a.n, a.inp, a.outp, a.exp, a.tvp);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov