DEVFS(5): Properly initialize fp->f_cdevpriv

This commit is contained in:
Sebastian Huber
2018-03-27 14:40:19 +02:00
parent 7ec935e03f
commit 8993827a73

View File

@@ -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)