diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-14 13:01:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-14 13:01:58 +0000 |
commit | 15bcb4113c99b9c6fe71ffb4165a92ba7bfb7c49 (patch) | |
tree | f2fffa4de56719811f801408a758c41afc1d1cf7 /cpukit | |
parent | 2010-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-15bcb4113c99b9c6fe71ffb4165a92ba7bfb7c49.tar.bz2 |
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')
-rw-r--r-- | cpukit/ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/libblock/src/flashdisk.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index f107c002e3..73f50cba81 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,10 @@ +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. + 2010-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> * libmd/md5.h: Define MD5_DIGEST_SIZE. 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; } } |