[rtems-libbsd commit] Fix mount table location chain corruption

Sebastian Huber sebh at rtems.org
Thu Oct 16 13:04:59 UTC 2014


Module:    rtems-libbsd
Branch:    master
Commit:    feffbc2894077e819dc849ae4b9dc7ff33d5f57e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=feffbc2894077e819dc849ae4b9dc7ff33d5f57e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Oct 16 15:12:19 2014 +0200

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 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/freebsd/sys/sys/file.h b/freebsd/sys/sys/file.h
index c68caef..dd30c24 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);



More information about the vc mailing list