From: Tom Rini Date: Wed, 29 May 2019 13:16:53 -0400 Subject: [U-Boot] [PATCH] fs: fat: Fix possible double free of fatbuf In-Reply-To: <20190516143431.18608-1-afd@ti.com> References: <20190516143431.18608-1-afd@ti.com> Message-ID: <20190529171653.GW20781@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 Thu, May 16, 2019 at 09:34:31AM -0500, Andrew F. Davis wrote: > fat_itr_root() allocates fatbuf so we free it on the exit path, if > the function fails we should not free it, check the return value > and skip freeing if the function fails. > > Signed-off-by: Andrew F. Davis Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: