summaryrefslogtreecommitdiff
path: root/test/py/tests/test_source.py
diff options
context:
space:
mode:
authorPaul Barker <paul.barker@sancloud.com>2022-11-14 12:42:35 +0000
committerTom Rini <trini@konsulko.com>2022-12-02 08:39:00 -0500
commitdec64d55afca17bfc48366a48a0d5894b8a3bdd2 (patch)
tree3ecc7b5b7dc2980df370d6ec2b6473dc1bf3fe7c /test/py/tests/test_source.py
parent9f52e765dcf4e5b940db98136ad0382aecb2b932 (diff)
dm: core: Fix iteration over driver_info records
We should only perform additional iteration steps when needed to initialize the parent of a device. Other binding errors (such as a missing driver) should not lead to additional iteration steps. Unnecessary iteration steps can cause issues when memory is tightly constrained (such as in the TPL/SPL) since device_bind_by_name() unconditionally allocates memory for a struct udevice. On the SanCloud BBE this led to boot failure caused by memory exhaustion in the SPL when booting from SPI flash. Signed-off-by: Paul Barker <paul.barker@sancloud.com>
Diffstat (limited to 'test/py/tests/test_source.py')
0 files changed, 0 insertions, 0 deletions