Fix mount table location chain corruption

Do not add a location twice to the location chain of
rtems_filesystem_null_mt_entry (add it in falloc() only).
This commit is contained in:
Sebastian Huber 2014-10-16 15:12:19 +02:00
parent 43dc972cbc
commit feffbc2894

View File

@ -366,8 +366,6 @@ finit(struct file *fp, u_int fflag, short type, void *data,
fp->f_io.flags |= rtems_bsd_fflag_to_libio_flags(fflag);
pathinfo->handlers = ops;
pathinfo->mt_entry = &rtems_filesystem_null_mt_entry;
rtems_filesystem_location_add_to_mt_entry(pathinfo);
}
#endif /* __rtems__ */
int fgetvp(struct thread *td, int fd, cap_rights_t rights, struct vnode **vpp);