diff --git a/ChangeLog b/ChangeLog index 7fc88ace49..7b6d5a05d5 100644 --- a/ChangeLog +++ b/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/fs/fat/fs_fat32util.c b/fs/fat/fs_fat32util.c index cfacc643ea..227fa5ceaa 100644 --- a/fs/fat/fs_fat32util.c +++ b/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; } }