summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/sys/fs/devfs/devfs_devs.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/sys/fs/devfs/devfs_devs.c')
-rw-r--r--rtemsbsd/sys/fs/devfs/devfs_devs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtemsbsd/sys/fs/devfs/devfs_devs.c b/rtemsbsd/sys/fs/devfs/devfs_devs.c
index 7d89c49e..7c697b0a 100644
--- a/rtemsbsd/sys/fs/devfs/devfs_devs.c
+++ b/rtemsbsd/sys/fs/devfs/devfs_devs.c
@@ -98,6 +98,7 @@ devfs_imfs_open(rtems_libio_t *iop, const char *path, int oflag, mode_t mode)
}
fpop = td->td_fpop;
curthread->td_fpop = fp;
+ fp->f_cdevpriv = NULL;
error = dsw->d_open(cdev, oflag + 1, 0, td);
/* Clean up any cdevpriv upon error. */
if (error != 0)