]> granicus.if.org Git - esp-idf/commit
vfs_fat: allocate FIL structures on the heap in vfs_fat_link
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 4 May 2017 06:49:33 +0000 (14:49 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Fri, 5 May 2017 07:21:37 +0000 (15:21 +0800)
commitd18157e108c15147b8e9d2a00c0fe88aa5b62f36
tree7dde162687921e3adb5100ee6127d044db636a4a
parent1a73b41b10dd7b47cf9e3d73b7554bf7c0025c4c
vfs_fat: allocate FIL structures on the heap in vfs_fat_link

vfs_fat_link opened two files to perform copy operation. File structures
were allocated on the stack. When _MAX_SS setting was increased in
ffconf.h due to wear levelling feature, the size of these structures
increased to ~4k each (~8k total). This exceeds stack size allocated for
tasks in most typical cases.

This change makes file structures dynamically allocated.
components/fatfs/src/vfs_fat.c