Page MenuHomeFreeBSD

D30068.id88470.diff
No OneTemporary

D30068.id88470.diff

Index: sys/fs/devfs/devfs_vnops.c
===================================================================
--- sys/fs/devfs/devfs_vnops.c
+++ sys/fs/devfs/devfs_vnops.c
@@ -120,9 +120,8 @@
devfs_fp_check(struct file *fp, struct cdev **devp, struct cdevsw **dswp,
int *ref)
{
-
*dswp = devvn_refthread(fp->f_vnode, devp, ref);
- if (*devp != fp->f_data) {
+ if (*dswp == NULL || *devp != fp->f_data) {
if (*dswp != NULL)
dev_relthread(*devp, *ref);
return (ENXIO);

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 9:02 PM (10 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15607867
Default Alt Text
D30068.id88470.diff (478 B)

Event Timeline