diff options
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r-- | sys/compat/linux/linux_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 16184ff..d14b4a1 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; |