[PATCH v3 1/3] cli: panic when failed to allocate memory for the history buffer

Tom Rini trini at konsulko.com
Thu Mar 14 01:39:17 CET 2024


On Tue, Mar 05, 2024 at 03:37:33PM +0800, Hanyuan Zhao wrote:

> This commit simply modifies the history initialize function,
> replacing the return value by panic with reasons. The calling
> chains of hist_init don't have steps explicitly throwing or
> dealing with the ENOMEM error, and once the init fails, the
> whole system is died. Using panic here to provide error
> information instead.
> 
> Signed-off-by: Hanyuan Zhao <hanyuan-z at qq.com>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20240313/0c1e0e11/attachment.sig>


More information about the U-Boot mailing list