summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2008-04-24 21:50:57 +0000
committerEric Norum <WENorum@lbl.gov>2008-04-24 21:50:57 +0000
commit88f8f2fd6c21aad5ce3669ada3e14493cd7e7346 (patch)
tree2ce60ebcd5513ed0ef1fb28e70f8ad08e6eccbac /cpukit/libfs
parentMore clean up of FPGA interrupts. (diff)
downloadrtems-88f8f2fd6c21aad5ce3669ada3e14493cd7e7346.tar.bz2
Clean up error handling.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r--cpukit/libfs/src/nfsclient/src/nfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c
index a15f60f1bd..3983e77b9f 100644
--- a/cpukit/libfs/src/nfsclient/src/nfs.c
+++ b/cpukit/libfs/src/nfsclient/src/nfs.c
@@ -923,6 +923,7 @@ NfsNode rval = nfsNodeCreate(node->nfs, 0);
if (node->str) {
rval->args.name = rval->str = strdup(node->str);
if (!rval->str) {
+ errno = ENOMEM;
nfsNodeDestroy(rval);
return 0;
}
@@ -1393,6 +1394,11 @@ unsigned long niu,siu;
/* clone the node */
if ( !node ) {
/* nodeClone sets errno */
+ pathloc->node_access = 0;
+ if ( ! (e = errno) ) {
+ /* if we have no node, e must not be zero! */
+ e = ENOMEM;
+ }
goto cleanup;
}