summaryrefslogtreecommitdiff
path: root/cpukit/libblock
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-14 13:02:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-14 13:02:29 +0000
commit92570603000d10fdd10d11dbc7dbfe900d8b075c (patch)
tree3ccc285196ed5760b2c6ca9f93b3f189eb583185 /cpukit/libblock
parent45ef86e1605aacd98420e24cc13a4f50e0b79684 (diff)
2010-06-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1553/filesystem Coverity Id 37 * libblock/src/flashdisk.c: Fix two paths which should have returned an error but did not have the return statement.
Diffstat (limited to 'cpukit/libblock')
-rw-r--r--cpukit/libblock/src/flashdisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libblock/src/flashdisk.c b/cpukit/libblock/src/flashdisk.c
index aac9cec4dd..9fc004d597 100644
--- a/cpukit/libblock/src/flashdisk.c
+++ b/cpukit/libblock/src/flashdisk.c
@@ -2575,6 +2575,7 @@ rtems_fdisk_initialize (rtems_device_major_number major,
free (fd->devices);
rtems_fdisk_error ("recovery of disk failed: %s (%d)",
strerror (ret), ret);
+ return ret;
}
ret = rtems_fdisk_compact (fd);
@@ -2587,6 +2588,7 @@ rtems_fdisk_initialize (rtems_device_major_number major,
free (fd->devices);
rtems_fdisk_error ("compacting of disk failed: %s (%d)",
strerror (ret), ret);
+ return ret;
}
}