From: Tom Rini Date: Fri, 24 Aug 2018 16:10:12 -0400 Subject: [U-Boot] [U-Boot, v1] malloc_simple: calloc: don't call memset if malloc failed In-Reply-To: <20180816075032.18346-1-simon.k.r.goldschmidt@gmail.com> References: <20180816075032.18346-1-simon.k.r.goldschmidt@gmail.com> Message-ID: <20180824201012.GN26633@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, Aug 16, 2018 at 09:50:32AM +0200, Simon Goldschmidt wrote: > malloc_simple() can return 0 if out of memory. Don't call memset > from calloc() in this case but rely on the caller checking > the return value. > > Signed-off-by: Simon Goldschmidt > Reviewed-by: Marek Vasut 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: