diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-08 09:59:17 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-08 09:59:17 +0000 |
| commit | 3e30338edddf50b73eff0da06d96647258cc3bd4 (patch) | |
| tree | 12aa4d2bf9621b15e02836d95264371bd9d38eef | |
| parent | 73027df75cb08668401961a449e1221fd98e5acb (diff) | |
Notes
| -rw-r--r-- | sys/compat/linux/linux_file.c | 2 | ||||
| -rw-r--r-- | sys/i386/linux/linux_file.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 16184ff416fd..d14b4a1e4f79 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -306,7 +306,7 @@ linux_fcntl(struct proc *p, struct linux_fcntl_args *args) } vp = (struct vnode *)fp->f_data; dev = vn_todev(vp); - if (vp->v_type != VCHR || dev == NODEV) + if (dev == NODEV) return EINVAL; if (!(devsw(dev)->d_flags & D_TTY)) return EINVAL; diff --git a/sys/i386/linux/linux_file.c b/sys/i386/linux/linux_file.c index 16184ff416fd..d14b4a1e4f79 100644 --- a/sys/i386/linux/linux_file.c +++ b/sys/i386/linux/linux_file.c @@ -306,7 +306,7 @@ linux_fcntl(struct proc *p, struct linux_fcntl_args *args) } vp = (struct vnode *)fp->f_data; dev = vn_todev(vp); - if (vp->v_type != VCHR || dev == NODEV) + if (dev == NODEV) return EINVAL; if (!(devsw(dev)->d_flags & D_TTY)) return EINVAL; |
