summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_file.c2
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;
OpenPOWER on IntegriCloud