From: Tom Rini Date: Wed, 3 Mar 2021 14:10:24 -0500 Subject: [PATCH v4 7/9] sandbox: Avoid using malloc() for system state In-Reply-To: <20210206095728.v4.7.I8f45b8640fe93b61c6e24cac4d70c193bccaf192@changeid> References: <20210206165736.3491584-1-sjg@chromium.org> <20210206095728.v4.7.I8f45b8640fe93b61c6e24cac4d70c193bccaf192@changeid> Message-ID: <20210303191024.GB1310@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 Sat, Feb 06, 2021 at 09:57:33AM -0700, Simon Glass wrote: > This state is not accessible to the running U-Boot but at present it is > allocated in the emulated SDRAM. This doesn't seem very useful. Adjust > it to allocate from the OS instead. > > The RAM buffer is currently not freed, but should be, so add that into > state_uninit(). Update the comment for os_free() to indicate that NULL is > a valid parameter value. > > Note that the strdup() in spl_board_load_image() is changed as well, since > strdup() allocates memory in the RAM buffer. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: