From feffbc2894077e819dc849ae4b9dc7ff33d5f57e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 16 Oct 2014 15:12:19 +0200 Subject: [PATCH] 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). --- freebsd/sys/sys/file.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/freebsd/sys/sys/file.h b/freebsd/sys/sys/file.h index c68caef5..dd30c249 100644 --- a/freebsd/sys/sys/file.h +++ b/freebsd/sys/sys/file.h @@ -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);