===== arch/x86_64/ia32/ia32_ioctl.c 1.38 vs edited ===== --- 1.38/arch/x86_64/ia32/ia32_ioctl.c Wed Feb 25 11:06:01 2004 +++ edited/arch/x86_64/ia32/ia32_ioctl.c Sun Mar 21 11:43:56 2004 @@ -27,7 +27,7 @@ struct file *file = fget(fd); struct tty_struct *real_tty; - if (!fd) + if (!file) return -EBADF; if (file->f_op->ioctl != tty_ioctl) return -EINVAL;