From: Lokesh Vutla Date: Thu, 28 Mar 2019 08:55:12 +0530 Subject: [U-Boot] [PATCH] malloc: Fix memalign not honoring alignment prior to full malloc init In-Reply-To: <20190327181726.16590-1-dannenberg@ti.com> References: <20190327181726.16590-1-dannenberg@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27/03/19 11:47 PM, Andreas Dannenberg wrote: > When using memalign() in a scenario where U-Boot is configured for full > malloc support with simple malloc not explicitly enabled and before the > full malloc support is initialized, a memory block is being allocated > and returned without the alignment parameter getting honored. > > Fix this issue by replacing the existing memalign pre-full malloc init > logic with a call to memalign_simple() this way ensuring proper alignment > of the returned memory block. > > Fixes: ee038c58d519 ("malloc: Use malloc simple before malloc is fully initialized in memalign()") > Signed-off-by: Andreas Dannenberg > --- Good catch. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh