Skip to content
Commit f2ebaaa9 authored by Pierre-Clément Tosi's avatar Pierre-Clément Tosi Committed by Tom Rini
Browse files

pci: Handle failed calloc in decode_regions()



Add a check for calloc() failing to allocate the requested memory.

Make decode_regions() return an error code.

Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: default avatarPierre-Clément Tosi <ptosi@google.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 26f981f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment