FAT: Fix error return value. In one failure case, success was being returned

This commit is contained in:
Gregory Nutt 2013-11-01 11:49:13 -06:00
parent 0d0c3e66fb
commit af4c5246b0
2 changed files with 4 additions and 1 deletions

View File

@ -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).

View File

@ -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;
}
}