diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-14 13:02:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-14 13:02:29 +0000 |
commit | 92570603000d10fdd10d11dbc7dbfe900d8b075c (patch) | |
tree | 3ccc285196ed5760b2c6ca9f93b3f189eb583185 | |
parent | 2010-06-14 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-92570603000d10fdd10d11dbc7dbfe900d8b075c.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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/libblock/src/flashdisk.c | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -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-05-11 Ralf Corsépius <ralf.corsepius@rtems.org> * aclocal/bsp-alias.m4: Change quoting to work-round 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; } } |