]> granicus.if.org Git - esp-idf/commit
fat/sdmmc: unmount FATFS object on error
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 19 Apr 2017 07:03:30 +0000 (15:03 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 19 Apr 2017 07:03:30 +0000 (15:03 +0800)
commit8f02730e1f44d00fe72e864ecb461883ec56f098
treeed45e70016bdabc99efac7addb0c4d78f6b5cd3f
parentf73c6f875cc564fa6c9962be71eac4dbdc56aa63
fat/sdmmc: unmount FATFS object on error

Failure to call f_mount(NULL,...) makes FATFS attempt to clean up the old
FS object upon next mount. If previous mount operation has failed, some
parts of FS object may not be fully initialized, which will cause errors
(such as attempting to delete a mutex which wasn’t allocated).
components/fatfs/src/vfs_fat_sdmmc.c