[U-Boot] [U-Boot, v1] malloc_simple: calloc: don't call memset if malloc failed
Tom Rini
trini at konsulko.com
Fri Aug 24 20:10:12 UTC 2018
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 <simon.k.r.goldschmidt at gmail.com>
> Reviewed-by: Marek Vasut <marex at denx.de>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20180824/7794b59a/attachment.sig>
More information about the U-Boot
mailing list