From 1bdff036acddbbc63aa849741abba6581549f7b6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 23 Feb 2012 17:57:27 +0100 Subject: IMFS: Reference counting for nodes The introduction of reference counting of nodes avoids the removal of open nodes and potential usage of freed memory. --- cpukit/libfs/src/imfs/miniimfs_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libfs/src/imfs/miniimfs_init.c') diff --git a/cpukit/libfs/src/imfs/miniimfs_init.c b/cpukit/libfs/src/imfs/miniimfs_init.c index a4db968e3c..af791f5a31 100644 --- a/cpukit/libfs/src/imfs/miniimfs_init.c +++ b/cpukit/libfs/src/imfs/miniimfs_init.c @@ -34,8 +34,8 @@ static const rtems_filesystem_operations_table miniIMFS_ops = { .rmnod_h = IMFS_rmnod, .fchmod_h = rtems_filesystem_default_fchmod, .chown_h = rtems_filesystem_default_chown, - .clonenod_h = rtems_filesystem_default_clonenode, - .freenod_h = rtems_filesystem_default_freenode, + .clonenod_h = IMFS_node_clone, + .freenod_h = IMFS_node_free, .mount_h = IMFS_mount, .fsmount_me_h = miniIMFS_initialize, .unmount_h = rtems_filesystem_default_unmount, -- cgit v1.2.3