Pierre-Clément Tosi f2ebaaa9f3 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>
2022-06-06 18:01:21 -04:00
..
2022-04-25 09:25:00 +02:00
2022-05-02 09:58:13 -04:00
2022-03-28 12:36:49 -04:00
2021-10-05 08:50:15 -04:00
2022-03-30 13:02:55 -04:00
2022-01-13 07:57:49 -05:00
2022-04-28 09:26:44 -04:00
2022-01-13 07:57:49 -05:00
2022-06-06 12:09:12 -04:00
2022-05-20 12:36:48 +02:00
2022-06-06 18:01:21 -04:00
2022-05-02 09:58:13 -04:00
2022-05-03 21:39:22 +02:00
2022-06-06 12:09:12 -04:00
2021-10-01 21:08:18 -04:00
2021-10-31 08:46:44 -04:00