FAT: Fix error return value. In one failure case, success was being returned
This commit is contained in:
parent
0d0c3e66fb
commit
af4c5246b0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue