patch-2.3.10 linux/arch/sparc/kernel/sunos_ioctl.c
Next file: linux/arch/sparc/kernel/sys_sunos.c
Previous file: linux/arch/sparc/kernel/sun4m_smp.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Tue Jul 6 10:11:40 1999
- Orig file:
v2.3.9/linux/arch/sparc/kernel/sunos_ioctl.c
- Orig date:
Tue Oct 27 09:52:20 1998
diff -u --recursive --new-file v2.3.9/linux/arch/sparc/kernel/sunos_ioctl.c linux/arch/sparc/kernel/sunos_ioctl.c
@@ -36,11 +36,10 @@
asmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg)
{
- struct file *filp;
int ret = -EBADF;
lock_kernel();
- if (fd >= SUNOS_NR_OPEN || !(filp = current->files->fd [fd]))
+ if (fd >= SUNOS_NR_OPEN || !fcheck(fd))
goto out;
/* First handle an easy compat. case for tty ldisc. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)