diff options
-rw-r--r-- | c/src/exec/libfs/src/imfs/imfs_rmnod.c | 1 | ||||
-rw-r--r-- | c/src/lib/libc/imfs_rmnod.c | 1 | ||||
-rw-r--r-- | c/src/libfs/src/imfs/imfs_rmnod.c | 1 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_rmnod.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_rmnod.c b/c/src/exec/libfs/src/imfs/imfs_rmnod.c index f651622de4..3768b9543d 100644 --- a/c/src/exec/libfs/src/imfs/imfs_rmnod.c +++ b/c/src/exec/libfs/src/imfs/imfs_rmnod.c @@ -55,6 +55,7 @@ int IMFS_rmnod( /* * Take the node out of the parent's chain that contains this node */ + if ( the_jnode->Parent != NULL ) { Chain_Extract( (Chain_Node *) the_jnode ); the_jnode->Parent = NULL; diff --git a/c/src/lib/libc/imfs_rmnod.c b/c/src/lib/libc/imfs_rmnod.c index f651622de4..3768b9543d 100644 --- a/c/src/lib/libc/imfs_rmnod.c +++ b/c/src/lib/libc/imfs_rmnod.c @@ -55,6 +55,7 @@ int IMFS_rmnod( /* * Take the node out of the parent's chain that contains this node */ + if ( the_jnode->Parent != NULL ) { Chain_Extract( (Chain_Node *) the_jnode ); the_jnode->Parent = NULL; diff --git a/c/src/libfs/src/imfs/imfs_rmnod.c b/c/src/libfs/src/imfs/imfs_rmnod.c index f651622de4..3768b9543d 100644 --- a/c/src/libfs/src/imfs/imfs_rmnod.c +++ b/c/src/libfs/src/imfs/imfs_rmnod.c @@ -55,6 +55,7 @@ int IMFS_rmnod( /* * Take the node out of the parent's chain that contains this node */ + if ( the_jnode->Parent != NULL ) { Chain_Extract( (Chain_Node *) the_jnode ); the_jnode->Parent = NULL; diff --git a/cpukit/libfs/src/imfs/imfs_rmnod.c b/cpukit/libfs/src/imfs/imfs_rmnod.c index f651622de4..3768b9543d 100644 --- a/cpukit/libfs/src/imfs/imfs_rmnod.c +++ b/cpukit/libfs/src/imfs/imfs_rmnod.c @@ -55,6 +55,7 @@ int IMFS_rmnod( /* * Take the node out of the parent's chain that contains this node */ + if ( the_jnode->Parent != NULL ) { Chain_Extract( (Chain_Node *) the_jnode ); the_jnode->Parent = NULL; |