commit | c84d83097d49f589486a599525fb97b92df11713 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Thu May 19 17:48:30 2022 +0100 |
committer | Tom Rini <trini@konsulko.com> | Mon Jun 06 18:01:21 2022 -0400 |
tree | 87f5365d88bfa8a2df2768a90163b4fb0817e447 | |
parent | c55d261d4f82c8df609ec8e23c7b2355664ef8c0 [diff] |
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: Pierre-Clément Tosi <ptosi@google.com> Reviewed-by: Stefan Roese <sr@denx.de>