Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106128182
D30068.id88470.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
D30068.id88470.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D30068: devfs: Avoid comparison with an uninitialized var in devfs_fp_check()
Attached
Detach File
Event Timeline
Log In to Comment