mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 21:47:28 +08:00
FAT: Fix error return value. In one failure case, success was being returned
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user