summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/ChangeLog4
-rw-r--r--nuttx/fs/fat/fs_fat32util.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index 7fc88ace4..7b6d5a05d 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -5935,4 +5935,6 @@
stacks as well as the heap. Suggested by David Sidrane (2013-11-1).
* configs/spark/usbmsc: Add spark USB MSC configuration. From David
Sidrane (2013-11-1).
-
+ * fs/fat/fs_fat32util.c: In one error return case, the error return
+ value was not being set, making the failure look like success. From
+ David Sidrane (2011-10-1).
diff --git a/nuttx/fs/fat/fs_fat32util.c b/nuttx/fs/fat/fs_fat32util.c
index cfacc643e..227fa5cea 100644
--- a/nuttx/fs/fat/fs_fat32util.c
+++ b/nuttx/fs/fat/fs_fat32util.c
@@ -630,6 +630,7 @@ int fat_mount(struct fat_mountpt_s *fs, bool writeable)
if (i > 3)
{
fdbg("No valid MBR\n");
+ ret = -EINVAL;
goto errout_with_buffer;
}
}