Re: [U-Boot] [PATCH 02/10] ext4: avoid calling ext4fs_mount() twice, which leaks

2015-09-08 Thread Lukasz Majewski
Hi Stephen, > From: Stephen Warren > > ext4_write_file() is only called from the "fs" layer, which calls both > ext4fs_mount() and ext4fs_close() before/after calling > ext4_write_file(). Fix ext4_write_file() not to call ext4fs_mount() > again, since the mount operation

[U-Boot] [PATCH 02/10] ext4: avoid calling ext4fs_mount() twice, which leaks

2015-09-04 Thread Stephen Warren
From: Stephen Warren ext4_write_file() is only called from the "fs" layer, which calls both ext4fs_mount() and ext4fs_close() before/after calling ext4_write_file(). Fix ext4_write_file() not to call ext4fs_mount() again, since the mount operation malloc()s some RAM which is