From: Tom Rini Date: Wed, 13 Sep 2017 12:01:12 -0400 Subject: [U-Boot] [PATCH] fs/fat: fix fatbuf leak In-Reply-To: <20170912204005.30404-1-robdclark@gmail.com> References: <20170912204005.30404-1-robdclark@gmail.com> Message-ID: <20170913160112.GF25597@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Sep 12, 2017 at 04:40:01PM -0400, Rob Clark wrote: > A new fatbuf was allocated by get_fs_info() (called by fat_itr_root()), > but not freed, resulting in eventually running out of memory. Spotted > by running 'ls -r' in a large FAT filesystem from Shell.efi. > > fatbuf is mainly used to cache FAT entry lookups (get_fatent()).. > possibly once fat_write.c it can move into the iterator to simplify > this. > > Signed-off-by: Rob Clark > --- > I can squash this back in to the earlier readdir patches and resend > them if that is preferred. Separate is fine, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: