2008-05-30 Till Straumann <strauman@slac.stanford.edu>

* libfs/src/nfsclient/src/nfs.c:BUGFIX: must not attempt to
	release node if rtems_filesystem_evaluate_path() fails
	in nfs_eval_link() since pathloc contains no valid node.
This commit is contained in:
Till Straumann
2008-05-30 23:21:06 +00:00
parent 288f1c33c9
commit 9cf3432cc4
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2008-05-30 Till Straumann <strauman@slac.stanford.edu>
* libfs/src/nfsclient/src/nfs.c:BUGFIX: must not attempt to
release node if rtems_filesystem_evaluate_path() fails
in nfs_eval_link() since pathloc contains no valid node.
2008-05-27 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-05-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell_getchar.c: Minor change so dropping connection * libmisc/shell/shell_getchar.c: Minor change so dropping connection

View File

@@ -2401,6 +2401,11 @@ int rval = RVAL_ERR_AND_DO_FREENODE;
rtems_filesystem_freenode(pathloc); rtems_filesystem_freenode(pathloc);
if (rtems_filesystem_evaluate_path(buf, flags, pathloc, 1)) { if (rtems_filesystem_evaluate_path(buf, flags, pathloc, 1)) {
/* If evalpath fails then there is no valid node
* attached to pathloc; hence we must not attempt
* to free the node
*/
rval = RVAL_ERR_BUT_DONT_FREENODE;
goto cleanup; goto cleanup;
} }
} }