Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106099054
D30068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
450 B
Referenced Files
None
Subscribers
None
D30068.diff
View Options
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 9:29 AM (11 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15603356
Default Alt Text
D30068.diff (450 B)
Attached To
Mode
D30068: devfs: Avoid comparison with an uninitialized var in devfs_fp_check()
Attached
Detach File
Event Timeline
Log In to Comment