]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: fat: dynamically allocate memory for temporary buffer
authorTien Fong Chee <tien.fong.chee@intel.com>
Mon, 11 Feb 2019 06:56:19 +0000 (14:56 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 19 Feb 2019 13:55:43 +0000 (08:55 -0500)
commit8537874a6585251843f462c16b1684d38c887996
tree59c5722eaba9e9a12a5668219d3c435a07961b4a
parentdae5c2dcdc2bc826a4ee0a58b08fd004b6259373
fs: fat: dynamically allocate memory for temporary buffer

Drop the statically allocated get_contents_vfatname_block and
dynamically allocate a buffer only if required. This saves
64KiB of memory.

Signed-off-by: Stefan Agner <stefan.ag...@toradex.com>
Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
fs/fat/fat.c