]> Git Repo - u-boot.git/commit - test/dm/core.c
test/dm: check if devices exist
authorHeinrich Schuchardt <[email protected]>
Thu, 16 Jul 2020 22:20:14 +0000 (00:20 +0200)
committerSimon Glass <[email protected]>
Sat, 25 Jul 2020 20:46:57 +0000 (14:46 -0600)
commit331caeafad40dd457dbc669c05a9e0d8ebc7095f
tree543e3a0e9bca963b12b3a1eb94548db76bc397aa
parent5ab71ea4b18dce9fe5599075c4309ea39b62954f
test/dm: check if devices exist

Running 'ut dm' on the sandbox without -D or -d results in segmentation
faults due to NULL pointer dereferences.

Check that device pointers are non-NULL before using them.

Use ut_assertnonnull() for pointers instead of ut_assert().

Signed-off-by: Heinrich Schuchardt <[email protected]>
Tested-by: Philippe Reynes <[email protected]>
test/dm/acpi.c
test/dm/core.c
test/dm/devres.c
test/dm/test-fdt.c
test/dm/virtio.c
This page took 0.033713 seconds and 4 git commands to generate.