[PATCH] pci: Handle failed calloc in decode_regions()

Tom Rini trini at konsulko.com
Tue Jun 7 18:47:31 CEST 2022


On Thu, May 19, 2022 at 05:48:30PM +0100,  Pierre-Clément Tosi  wrote:

> Add a check for calloc() failing to allocate the requested memory.
> 
> Make decode_regions() return an error code.
> 
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Stefan Roese <sr at denx.de>
> Signed-off-by: Pierre-Clément Tosi <ptosi at google.com>
> Reviewed-by: Stefan Roese <sr at denx.de>

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/20220607/9817c947/attachment.sig>


More information about the U-Boot mailing list